mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Remove redundant const specifier
This commit is contained in:
@@ -92,7 +92,7 @@ void Preferences::freeInstance()
|
|||||||
m_instance = nullptr;
|
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);
|
return SettingsStorage::instance()->loadValue(key, defaultValue);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class Preferences : public QObject
|
|||||||
|
|
||||||
Preferences();
|
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);
|
void setValue(const QString &key, const QVariant &value);
|
||||||
|
|
||||||
static Preferences *m_instance;
|
static Preferences *m_instance;
|
||||||
|
|||||||
Reference in New Issue
Block a user