summaryrefslogtreecommitdiff
path: root/cppuhelper/source/unourl.cxx
diff options
context:
space:
mode:
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;