OSDN Git Service

simplify the QSettings write check
authorIvailo Monev <xakepa10@laimg.moc>
Tue, 24 Dec 2019 19:19:32 +0000 (19:19 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Tue, 24 Dec 2019 19:19:48 +0000 (19:19 +0000)
commitd236165d115b7abe32668d014e5fdcdca1b17377
tree483a3172f89e82cf4ff294e0845597ef6d260390
parentc797b18733e76a6fbccc3bb94872e11a2d448177
simplify the QSettings write check

the previous implementation was supposed to be write-optimized, for cases
when QSettings::setValue() followed by QSettings::sync() is called often.
it turns out that optimizing for reading from the settings without changing
the object is more beneficial as that is often the case.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/io/qsettings.cpp
src/core/io/qsettings_p.h