Browse Source

Remove redundant const specifier

adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
1c343a444b
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/preferences.cpp
  2. 2
      src/base/preferences.h

2
src/base/preferences.cpp

@ -92,7 +92,7 @@ void Preferences::freeInstance() @@ -92,7 +92,7 @@ void Preferences::freeInstance()
m_instance = nullptr;
}
const QVariant Preferences::value(const QString &key, const QVariant &defaultValue) const
QVariant Preferences::value(const QString &key, const QVariant &defaultValue) const
{
return SettingsStorage::instance()->loadValue(key, defaultValue);
}

2
src/base/preferences.h

@ -81,7 +81,7 @@ class Preferences : public QObject @@ -81,7 +81,7 @@ class Preferences : public QObject
Preferences();
const QVariant value(const QString &key, const QVariant &defaultValue = {}) const;
QVariant value(const QString &key, const QVariant &defaultValue = {}) const;
void setValue(const QString &key, const QVariant &value);
static Preferences *m_instance;

Loading…
Cancel
Save