1
0
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:
Chocobo1 2021-09-21 17:18:43 +08:00
parent 1c9696b68e
commit 1c343a444b
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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;