Browse Source

Remove redundant layer of `QVariant` in `Preferences` class

PR #15812.
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
28f2def21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 319
      src/base/preferences.cpp
  2. 4
      src/base/preferences.h

319
src/base/preferences.cpp

File diff suppressed because it is too large Load Diff

4
src/base/preferences.h

@ -32,7 +32,6 @@
#include <QObject> #include <QObject>
#include <QtContainerFwd> #include <QtContainerFwd>
#include <QtGlobal> #include <QtGlobal>
#include <QVariant>
#include "base/utils/net.h" #include "base/utils/net.h"
@ -94,9 +93,6 @@ class Preferences : public QObject
Preferences(); Preferences();
QVariant value(const QString &key, const QVariant &defaultValue = {}) const;
void setValue(const QString &key, const QVariant &value);
static Preferences *m_instance; static Preferences *m_instance;
signals: signals:

Loading…
Cancel
Save