diff options
Diffstat (limited to 'core/settings/qPrefPrivate.cpp')
-rw-r--r-- | core/settings/qPrefPrivate.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/settings/qPrefPrivate.cpp b/core/settings/qPrefPrivate.cpp index 14fb1be1e..e1622c3e7 100644 --- a/core/settings/qPrefPrivate.cpp +++ b/core/settings/qPrefPrivate.cpp @@ -18,10 +18,6 @@ QString keyFromGroupAndName(QString group, QString name) void qPrefPrivate::propSetValue(const QString &key, const QVariant &value, const QVariant &defaultValue) { - // REMARK: making s static (which would be logical) does NOT work - // because it gets initialized too early. - // Having it as a local variable is light weight, because it is an - // interface class. QSettings s; bool isDefault = false; if (value.isValid() && value.type() == QVariant::Double) @@ -37,10 +33,6 @@ void qPrefPrivate::propSetValue(const QString &key, const QVariant &value, const QVariant qPrefPrivate::propValue(const QString &key, const QVariant &defaultValue) { - // REMARK: making s static (which would be logical) does NOT work - // because it gets initialized too early. - // Having it as a local variable is light weight, because it is an - // interface class. QSettings s; return s.value(key, defaultValue); } |