From b9816896abacac108d54ccdc1286b2542465287b Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 22 Sep 2015 19:22:37 +0200 Subject: Only add value to list if its not already there. --- src/CRSMConfig.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/CRSMConfig.cpp') diff --git a/src/CRSMConfig.cpp b/src/CRSMConfig.cpp index 25f8bd1..8fe5995 100644 --- a/src/CRSMConfig.cpp +++ b/src/CRSMConfig.cpp @@ -142,14 +142,9 @@ bool CRSMConfig::write(const QString &fileName) } } -void CRSMConfig::operator()(CRSMConfig &&other) +void CRSMConfig::clear() { auto curConfigValues(configValues); - *this = other; + (*this) = CRSMConfig(); configValues = curConfigValues; } - -void CRSMConfig::clear() -{ - (*this)(CRSMConfig()); -} -- cgit v1.2.3-54-g00ecf