mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 07:48:04 +00:00
Remove redundant const specifier
This commit is contained in:
parent
1c9696b68e
commit
1c343a444b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user