summaryrefslogtreecommitdiffstats
path: root/src/Configuration.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
commit90fca083052880479ad90d870e556f0648e32106 (patch)
treed99d4aa6f7f519d59b0d262dbc1f5451afff07d1 /src/Configuration.cpp
parente84092a7acee6c4d1493cbdd23ec5676b923f44d (diff)
downloadingen-90fca083052880479ad90d870e556f0648e32106.tar.gz
ingen-90fca083052880479ad90d870e556f0648e32106.tar.bz2
ingen-90fca083052880479ad90d870e556f0648e32106.zip
Replace insert(make_pair(...)) with emplace
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;
}