From db17a874af37350b3270932175854ee674447bc1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 11 Aug 2017 11:36:47 +0200 Subject: convert std::map::insert to std::map::emplace II Change-Id: Ief8bd59c903625ba65b75114b7b52c3b7ecbd331 Reviewed-on: https://gerrit.libreoffice.org/41019 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/source/unourl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cppuhelper/source/unourl.cxx') 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; -- cgit