summaryrefslogtreecommitdiffstats
path: root/src/Configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r--src/Configuration.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp
index a65967b5..6cda3289 100644
--- a/src/Configuration.cpp
+++ b/src/Configuration.cpp
@@ -89,12 +89,12 @@ Configuration::add(const std::string& key,
{
assert(value.type() == type || value.type() == 0);
_max_name_length = std::max(_max_name_length, name.length());
- _options.insert(make_pair(name, Option{key, name, letter, desc, scope, type, value}));
+ _options.emplace(name, Option{key, name, letter, desc, scope, type, value});
if (!key.empty()) {
- _keys.insert(make_pair(key, name));
+ _keys.emplace(key, name);
}
if (letter != '\0') {
- _short_names.insert(make_pair(letter, name));
+ _short_names.emplace(letter, name);
}
return *this;
}