diff options
Diffstat (limited to 'xmloff/source/core')
-rw-r--r-- | xmloff/source/core/i18nmap.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/nmspmap.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/core/i18nmap.cxx b/xmloff/source/core/i18nmap.cxx index 87a7801da048..cc8ad3682bbf 100644 --- a/xmloff/source/core/i18nmap.cxx +++ b/xmloff/source/core/i18nmap.cxx @@ -24,7 +24,7 @@ bool SvI18NMap::Add( sal_uInt16 nKind, const OUString& rName, const OUString& rNewName ) { SvI18NMapEntry_Key aKey(nKind, rName); - bool bIsNewInsertion = m_aMap.insert(SvI18NMap_Impl::value_type(aKey, rNewName)).second; + bool bIsNewInsertion = m_aMap.emplace(aKey, rNewName).second; SAL_INFO_IF(!bIsNewInsertion, "xmloff.core", "SvI18NMap::Add: item with key \"" << rName << "\" registered already, likely invalid input file"); return bIsNewInsertion; } diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx index 7d45c524d5f5..52cfb2add085 100644 --- a/xmloff/source/core/nmspmap.cxx +++ b/xmloff/source/core/nmspmap.cxx @@ -347,7 +347,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByAttrName_( const OUString& rAttrName, if (bCache) { - aNameCache.insert(NameSpaceHash::value_type(rAttrName, xEntry)); + aNameCache.emplace(rAttrName, xEntry); } } diff --git a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx index 40ca17543de1..795aa5838218 100644 --- a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx +++ b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx @@ -46,7 +46,7 @@ const OUString& UnoInterfaceToUniqueIdentifierMapper::registerReference( const R { OUString aId( "id" ); aId += OUString::number( mnNextId++ ); - return (*maEntries.insert( IdMap_t::value_type( aId, xRef ) ).first).first; + return (*maEntries.emplace( aId, xRef ).first).first; } } |