summaryrefslogtreecommitdiff
path: root/framework/source/uielement/toolbarmerger.cxx
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/uielement/toolbarmerger.cxx
parentd0521e28a12e6fbba70d6d866ba37fb6565701f9 (diff)
workaround internal compiler error with gcc 4.7
Diffstat (limited to 'framework/source/uielement/toolbarmerger.cxx')
-rw-r--r--framework/source/uielement/toolbarmerger.cxx3
1 files changed, 2 insertions, 1 deletions
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
{