From 90fca083052880479ad90d870e556f0648e32106 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jan 2018 00:41:34 +0100 Subject: Replace insert(make_pair(...)) with emplace --- src/Configuration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Configuration.cpp') 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; } -- cgit v1.2.1