mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
qinisettings: code clean up
This commit is contained in:
parent
452a8b2ae2
commit
1e1094f8da
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
class QIniSettings : public QSettings {
|
class QIniSettings : public QSettings {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_DISABLE_COPY (QIniSettings)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QIniSettings(const QString &organization, const QString &application = QString(), QObject *parent = 0 ):
|
QIniSettings(const QString &organization, const QString &application = QString(), QObject *parent = 0 ):
|
||||||
@ -51,12 +52,6 @@ public:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QIniSettings& operator =(const QIniSettings &other) {
|
|
||||||
Q_UNUSED(other);
|
|
||||||
Q_ASSERT(0);
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
QVariant value(const QString & key, const QVariant &defaultValue = QVariant()) const {
|
QVariant value(const QString & key, const QVariant &defaultValue = QVariant()) const {
|
||||||
QString key_tmp(key);
|
QString key_tmp(key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user