summaryrefslogtreecommitdiff
path: root/framework/source/xml/toolboxdocumenthandler.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-04-03 12:51:15 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-04-03 12:51:15 +0000
commitaf5c7bfba175d355aafbb47112889c5ba2ee4859 (patch)
treed379091d99561ac140bac1fdf9043093e7c25139 /framework/source/xml/toolboxdocumenthandler.cxx
parent8738afc1cb75e9ea8839fee580b1d5660bb214f1 (diff)
INTEGRATION: CWS salstrintern (1.12.82); FILE MERGED
2007/02/08 14:17:12 mmeeks 1.12.82.1: Issue number: i#74343 Submitted by: mmeeks use 'intern' in hot-spots to avoid string duplication.
Diffstat (limited to 'framework/source/xml/toolboxdocumenthandler.cxx')
-rw-r--r--framework/source/xml/toolboxdocumenthandler.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/source/xml/toolboxdocumenthandler.cxx b/framework/source/xml/toolboxdocumenthandler.cxx
index 598979af23..4f499f4bfc 100644
--- a/framework/source/xml/toolboxdocumenthandler.cxx
+++ b/framework/source/xml/toolboxdocumenthandler.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: toolboxdocumenthandler.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: obo $ $Date: 2006-10-13 09:43:49 $
+ * last change: $Author: rt $ $Date: 2007-04-03 13:51:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -122,7 +122,10 @@ static void ExtractToolbarParameters( const Sequence< PropertyValue > rProp,
for ( sal_Int32 i = 0; i < rProp.getLength(); i++ )
{
if ( rProp[i].Name.equalsAscii( ITEM_DESCRIPTOR_COMMANDURL ))
+ {
rProp[i].Value >>= rCommandURL;
+ rCommandURL = rCommandURL.intern();
+ }
else if ( rProp[i].Name.equalsAscii( ITEM_DESCRIPTOR_HELPURL ))
rProp[i].Value >>= rHelpURL;
else if ( rProp[i].Name.equalsAscii( ITEM_DESCRIPTOR_LABEL ))
@@ -362,7 +365,7 @@ throw( SAXException, RuntimeException )
case TB_ATTRIBUTE_URL:
{
bAttributeURL = sal_True;
- aCommandURL = xAttribs->getValueByIndex( n );
+ aCommandURL = xAttribs->getValueByIndex( n ).intern();
}
break;