diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2015-09-22 19:22:37 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2015-09-22 19:22:37 +0200 |
| commit | b9816896abacac108d54ccdc1286b2542465287b (patch) | |
| tree | 1239ebd5369af44a45c0ef4555128ff199af891d /src/CRSMConfig.cpp | |
| parent | b9a818bebcfc6e261959c4df95330594e9cbcffc (diff) | |
| download | manager-b9816896abacac108d54ccdc1286b2542465287b.tar.gz manager-b9816896abacac108d54ccdc1286b2542465287b.zip | |
Only add value to list if its not already there.
Diffstat (limited to 'src/CRSMConfig.cpp')
| -rw-r--r-- | src/CRSMConfig.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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()); -} |
