diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-10 16:43:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-11 12:38:32 +0200 |
commit | d347c2403605c5aa3ddd98fb605366914acab79f (patch) | |
tree | e39624030741234c514bccd858e69d6318dfba68 /configmgr/source | |
parent | f0e68d4feaaa43f7450432ad1ebd92c2b572400f (diff) |
convert std::map::insert to std::map::emplace
which is considerably less verbose
Change-Id: Ifa373e8eb09e39bd6c8d3578641610a6055a187b
Reviewed-on: https://gerrit.libreoffice.org/40978
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/dconf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/dconf.cxx b/configmgr/source/dconf.cxx index 2ba4d0c9b43c..35e626163fa3 100644 --- a/configmgr/source/dconf.cxx +++ b/configmgr/source/dconf.cxx @@ -1036,9 +1036,9 @@ void readDir( } } else if (replace) { members.erase(name); - members.insert(NodeMap::value_type(name, member)); + members.emplace( name, member)); } else if (insert) { - members.insert(NodeMap::value_type(name, member)); + members.emplace( name, member)); } } } |