diff options
Diffstat (limited to 'xmloff/source/script/XMLStarBasicExportHandler.cxx')
-rw-r--r-- | xmloff/source/script/XMLStarBasicExportHandler.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmloff/source/script/XMLStarBasicExportHandler.cxx b/xmloff/source/script/XMLStarBasicExportHandler.cxx index 398908e52454..50bc55e4fa5e 100644 --- a/xmloff/source/script/XMLStarBasicExportHandler.cxx +++ b/xmloff/source/script/XMLStarBasicExportHandler.cxx @@ -79,12 +79,9 @@ void XMLStarBasicExportHandler::Export( if( !sLocation.isEmpty() ) { - OUStringBuffer sTmp( sLocation.getLength() + sName.getLength() + 1 ); - sTmp = sLocation; - sTmp.append( ':' ); - sTmp.append( sName ); + OUString sTmp = sLocation + ":" + sName; rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_MACRO_NAME, - sTmp.makeStringAndClear()); + sTmp); } else { |