summaryrefslogtreecommitdiff
path: root/framework/source/fwe/xml/menudocumenthandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/fwe/xml/menudocumenthandler.cxx')
-rw-r--r--framework/source/fwe/xml/menudocumenthandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/fwe/xml/menudocumenthandler.cxx b/framework/source/fwe/xml/menudocumenthandler.cxx
index d6bff96e3155..da691e77276a 100644
--- a/framework/source/fwe/xml/menudocumenthandler.cxx
+++ b/framework/source/fwe/xml/menudocumenthandler.cxx
@@ -864,7 +864,7 @@ void OWriteMenuDocumentHandler::WriteMenuItem( const OUString& aCommandURL, cons
}
if ( nStyle > 0 )
{
- OUString aValue;
+ OUStringBuffer aValue;
const MenuStyleItem* pStyle = MenuItemStyles;
for ( sal_Int32 nIndex = 0; nIndex < nMenuStyleItemEntries; ++nIndex, ++pStyle )
@@ -872,13 +872,13 @@ void OWriteMenuDocumentHandler::WriteMenuItem( const OUString& aCommandURL, cons
if ( nStyle & pStyle->nBit )
{
if ( !aValue.isEmpty() )
- aValue += "+";
- aValue += OUString::createFromAscii( pStyle->attrName );
+ aValue.append("+");
+ aValue.appendAscii( pStyle->attrName );
}
}
pList->AddAttribute( ATTRIBUTE_NS_STYLE,
m_aAttributeType,
- aValue );
+ aValue.makeStringAndClear() );
}
m_xWriteDocumentHandler->ignorableWhitespace( OUString() );