diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-04-03 12:51:15 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-04-03 12:51:15 +0000 |
commit | abaceb9b09969781333a0cfbf5bfcd2dd43ef2f5 (patch) | |
tree | bbc83379c91e90ea51ce06134e1a391a485841b0 /framework/source/xml | |
parent | 8bc2d88c7a17939e590b742e814dcc6ddca0fe97 (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')
-rw-r--r-- | framework/source/xml/toolboxdocumenthandler.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/source/xml/toolboxdocumenthandler.cxx b/framework/source/xml/toolboxdocumenthandler.cxx index 73cbff681ccf..42f991505608 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; |