summaryrefslogtreecommitdiff
path: root/cppuhelper/source/unourl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-11 11:36:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-11 13:51:29 +0200
commitdb17a874af37350b3270932175854ee674447bc1 (patch)
treefecc983fb75d3a4072cc7bd344fc824d548deb0d /cppuhelper/source/unourl.cxx
parentdd8a400bbbb1b8d5592a870f2036a4df3d005a7d (diff)
convert std::map::insert to std::map::emplace II
Change-Id: Ief8bd59c903625ba65b75114b7b52c3b7ecbd331 Reviewed-on: https://gerrit.libreoffice.org/41019 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppuhelper/source/unourl.cxx')
-rw-r--r--cppuhelper/source/unourl.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/cppuhelper/source/unourl.cxx b/cppuhelper/source/unourl.cxx
index ce1249d4818a..cfd62ef23e6f 100644
--- a/cppuhelper/source/unourl.cxx
+++ b/cppuhelper/source/unourl.cxx
@@ -118,13 +118,12 @@ inline UnoUrlDescriptor::Impl::Impl(rtl::OUString const & rDescriptor)
case STATE_VALUE:
if (bEnd || c == 0x2C) // ','
{
- if (!m_aParameters.insert(
- Parameters::value_type(
+ if (!m_aParameters.emplace(
aKey,
rtl::Uri::decode(rDescriptor.copy(nStart,
i - nStart),
rtl_UriDecodeWithCharset,
- RTL_TEXTENCODING_UTF8))).second)
+ RTL_TEXTENCODING_UTF8)).second)
throw rtl::MalformedUriException(
"UNO URL contains duplicated parameter");
eState = STATE_KEY0;