From 619d3d8010b3c093fba8e87f831cc438d8822479 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Oct 2014 17:31:29 +0200 Subject: gcc too much a piece of work often Issue: #81 --- facetracknoir/options.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'facetracknoir/options.h') diff --git a/facetracknoir/options.h b/facetracknoir/options.h index 7833ea41..d9667e4a 100644 --- a/facetracknoir/options.h +++ b/facetracknoir/options.h @@ -75,7 +75,7 @@ namespace options { // snapshot of qsettings group at given time class group { private: - map map; + map kvs; string name; static const QString ini_pathname() { @@ -93,7 +93,7 @@ namespace options { { auto tmp = k_.toUtf8(); string k(tmp); - map[k] = conf.value(k_); + kvs[k] = conf.value(k_); } conf.endGroup(); } @@ -104,7 +104,7 @@ namespace options { QSettings s(ini_pathname(), QSettings::IniFormat); auto q_name = QString::fromStdString(name); s.beginGroup(q_name); - for (auto& i : map) + for (auto& i : kvs) { auto k = QString::fromStdString(i.first); s.setValue(k, i.second); @@ -115,17 +115,17 @@ namespace options { template t get(const string& k) { - return qcruft_to_t(map[k]); + return qcruft_to_t(kvs[k]); } void put(const string& s, const QVariant& d) { - map[s] = d; + kvs[s] = d; } bool contains(const string& s) { - return map.count(s) != 0; + return kvs.count(s) != 0; } }; -- cgit v1.2.3