diff options
author | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
commit | 90fca083052880479ad90d870e556f0648e32106 (patch) | |
tree | d99d4aa6f7f519d59b0d262dbc1f5451afff07d1 /src/Configuration.cpp | |
parent | e84092a7acee6c4d1493cbdd23ec5676b923f44d (diff) | |
download | ingen-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.cpp | 6 |
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; } |