summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-15 17:31:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-15 21:40:40 +0200
commit619d3d8010b3c093fba8e87f831cc438d8822479 (patch)
tree0e668df1c20ceb0d815801af34d410886704633d /facetracknoir
parenta2ed9ca0f2a237e4de3fab61beff3191935e8986 (diff)
gcc too much a piece of work often
Issue: #81
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/options.h12
1 files changed, 6 insertions, 6 deletions
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<string, QVariant> map;
+ map<string, QVariant> 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<typename t>
t get(const string& k)
{
- return qcruft_to_t<t>(map[k]);
+ return qcruft_to_t<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;
}
};