summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-01-10 13:31:33 +0100
committerDavid Tardon <dtardon@redhat.com>2012-01-10 13:59:43 +0100
commit4a71d128bba69f7b91fe46fad5731caac6ca6ba2 (patch)
treec06e80e269eb4d9831a8668c1690a2edf69bd758 /framework/source
parentd0521e28a12e6fbba70d6d866ba37fb6565701f9 (diff)
workaround internal compiler error with gcc 4.7
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/uielement/toolbarmanager.cxx3
-rw-r--r--framework/source/uielement/toolbarmerger.cxx3
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
{