Kaydet (Commit) b5c1d0fb authored tarafından Rüdiger Timm's avatar Rüdiger Timm

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)
üst da31ac5f
......@@ -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(
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment