diff options
Diffstat (limited to 'options/group.cpp')
-rw-r--r-- | options/group.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/options/group.cpp b/options/group.cpp index 41655d5e..d5829008 100644 --- a/options/group.cpp +++ b/options/group.cpp @@ -50,7 +50,7 @@ void group::save() const }); } -void group::put(const QString& s, const QVariant& d) +void group::put(const QString& s, QVariant&& d) { if (d.isNull()) kvs.erase(s); @@ -58,6 +58,11 @@ void group::put(const QString& s, const QVariant& d) kvs[s] = d; } +void group::put(const QString& s, const QVariant& d) +{ + put(s, QVariant{d}); +} + bool group::contains(const QString& s) const { const auto it = kvs.find(s); |