diff options
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 3 | ||||
-rw-r--r-- | framework/source/uielement/toolbarmerger.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 8d4f9841e00c..0104b65fd531 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -1379,7 +1379,8 @@ void ToolBarManager::FillToolbar( const Reference< XIndexAccess >& rItemContaine { aCmdInfo.nId = nId; aCmdInfo.nWidth = nWidth; - m_aCommandMap.insert( CommandToInfoMap::value_type( aCommandURL, aCmdInfo )); + const CommandToInfoMap::value_type aValue( aCommandURL, aCmdInfo ); + m_aCommandMap.insert( aValue ); } else { diff --git a/framework/source/uielement/toolbarmerger.cxx b/framework/source/uielement/toolbarmerger.cxx index 4b5da501f896..7e2a5f7e50eb 100644 --- a/framework/source/uielement/toolbarmerger.cxx +++ b/framework/source/uielement/toolbarmerger.cxx @@ -516,7 +516,8 @@ bool ToolBarMerger::MergeItems( { CommandInfo aCmdInfo; aCmdInfo.nId = rItemId; - rCommandMap.insert( CommandToInfoMap::value_type( rItem.aCommandURL, aCmdInfo )); + const CommandToInfoMap::value_type aValue( rItem.aCommandURL, aCmdInfo ); + rCommandMap.insert( aValue ); } else { |