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 /jvmfwk | |
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 'jvmfwk')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx index d53c6eecfc3b..146ee5d75a97 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx @@ -884,7 +884,6 @@ rtl::Reference<VendorBase> getJREInfoByPath( static map<OUString, rtl::Reference<VendorBase> > mapJREs; typedef map<OUString, rtl::Reference<VendorBase> >::const_iterator MapIt; - typedef map<OUString, rtl::Reference<VendorBase> > MAPJRE; OUString sFilePath; typedef vector<OUString>::const_iterator cit_path; vector<pair<OUString, OUString> > props; @@ -1055,8 +1054,8 @@ rtl::Reference<VendorBase> getJREInfoByPath( { JFW_TRACE2("Found JRE: " << sResolvedDir << " at: " << path); - mapJREs.insert(MAPJRE::value_type(sResolvedDir, ret)); - mapJREs.insert(MAPJRE::value_type(sFilePath, ret)); + mapJREs.emplace(sResolvedDir, ret); + mapJREs.emplace(sFilePath, ret); } return ret; |