diff options
Diffstat (limited to 'facetracknoir/options.h')
-rw-r--r-- | facetracknoir/options.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/facetracknoir/options.h b/facetracknoir/options.h index 7c5e57ef..057e97af 100644 --- a/facetracknoir/options.h +++ b/facetracknoir/options.h @@ -221,8 +221,6 @@ namespace options { template<typename T> class value : public base_value { - private: - T def; protected: QVariant operator=(const QVariant& datum) { auto foo = qcruft_to_t<T>(datum); @@ -233,7 +231,7 @@ namespace options { public: static constexpr const Qt::ConnectionType CONNTYPE = Qt::QueuedConnection; value(pbundle b, const QString& name, T def) : - base_value(b, name), def(def) + base_value(b, name) { if (!b->contains(name) || b->get<QVariant>(name).type() == QVariant::Invalid) { |