diff options
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/items/macitem.cxx | 4 | ||||
-rw-r--r-- | svl/source/misc/sharedstringpool.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/items/macitem.cxx b/svl/source/items/macitem.cxx index 505039c86d71..01a4ebd82993 100644 --- a/svl/source/items/macitem.cxx +++ b/svl/source/items/macitem.cxx @@ -131,7 +131,7 @@ void SvxMacroTableDtor::Read( SvStream& rStrm, sal_uInt16 nVersion ) if( SVX_MACROTBL_VERSION40 <= nVersion ) rStrm.ReadUInt16( eType ); - aSvxMacroTable.insert( SvxMacroTable::value_type(SvMacroItemId(nCurKey), SvxMacro( aMacName, aLibName, (ScriptType)eType ) )); + aSvxMacroTable.emplace( SvMacroItemId(nCurKey), SvxMacro( aMacName, aLibName, (ScriptType)eType ) ); } } @@ -186,7 +186,7 @@ bool SvxMacroTableDtor::IsKeyValid(SvMacroItemId nEvent) const // This stores a copy of the rMacro parameter SvxMacro& SvxMacroTableDtor::Insert(SvMacroItemId nEvent, const SvxMacro& rMacro) { - return aSvxMacroTable.insert( SvxMacroTable::value_type( nEvent, rMacro ) ).first->second; + return aSvxMacroTable.emplace( nEvent, rMacro ).first->second; } // If the entry exists, remove it from the map and release it's storage diff --git a/svl/source/misc/sharedstringpool.cxx b/svl/source/misc/sharedstringpool.cxx index d1b5aa695a1d..3383a7869566 100644 --- a/svl/source/misc/sharedstringpool.cxx +++ b/svl/source/misc/sharedstringpool.cxx @@ -101,7 +101,7 @@ SharedString SharedStringPool::intern( const OUString& rStr ) // Failed to insert or fetch upper-case variant. Should never happen. return SharedString(); - mpImpl->maStrStore.insert(StrStoreType::value_type(pOrig, *aRes.first)); + mpImpl->maStrStore.emplace(pOrig, *aRes.first); return SharedString(pOrig, aRes.first->pData); } |