diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-04-23 15:54:41 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-04-23 15:54:41 +0000 |
commit | b5c1d0fb76a78615eff64b41093a8ffc15072adf (patch) | |
tree | 2a6d0a53b4f8bf83125e12169dcbd8681f236070 | |
parent | da31ac5fd24bf9bffeff8fcd1a2b89f4e4d00e90 (diff) |
INTEGRATION: CWS uno2 (1.2.46); FILE MERGED
2003/04/11 12:23:17 ab 1.2.46.1: #108672# Use OUStringBuffer in ModuleElement::characters() (performance problem for big modules)
-rw-r--r-- | xmlscript/source/xmlmod_imexp/imp_share.hxx | 8 | ||||
-rw-r--r-- | xmlscript/source/xmlmod_imexp/xmlmod_import.cxx | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/xmlscript/source/xmlmod_imexp/imp_share.hxx b/xmlscript/source/xmlmod_imexp/imp_share.hxx index 7a1d9ffd32ff..819abf17cd43 100644 --- a/xmlscript/source/xmlmod_imexp/imp_share.hxx +++ b/xmlscript/source/xmlmod_imexp/imp_share.hxx @@ -2,9 +2,9 @@ * * $RCSfile: imp_share.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: ab $ $Date: 2001-08-09 15:42:28 $ + * last change: $Author: rt $ $Date: 2003-04-23 16:54:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,6 +65,9 @@ #include <xmlscript/xmlmod_imexp.hxx> #include <cppuhelper/implbase1.hxx> +#ifndef _RTL_USTRBUF_HXX_ +#include <rtl/ustrbuf.hxx> +#endif #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/container/XNameContainer.hpp> @@ -191,6 +194,7 @@ protected: OUString _aLocalName; Reference< xml::sax2::XExtendedAttributes > _xAttributes; + ::rtl::OUStringBuffer _StrBuffer; public: ModuleElement( diff --git a/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx b/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx index 97811f407d95..b1343ab3debb 100644 --- a/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx +++ b/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlmod_import.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: vg $ $Date: 2003-04-15 16:13:32 $ + * last change: $Author: rt $ $Date: 2003-04-23 16:54:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -108,12 +108,13 @@ void ModuleElement::ignorableWhitespace( void ModuleElement::characters( OUString const & rChars ) throw (xml::sax::SAXException, RuntimeException) { - _pImport->mrModuleDesc.aCode += rChars; + _StrBuffer.append( rChars ); } //__________________________________________________________________________________________________ void ModuleElement::endElement() throw (xml::sax::SAXException, RuntimeException) { + _pImport->mrModuleDesc.aCode = _StrBuffer.makeStringAndClear(); } //__________________________________________________________________________________________________ Reference< xml::XImportContext > ModuleElement::createChildContext( |