[Libreoffice-commits] core.git: oox/source

Michael Meeks michael.meeks at collabora.com
Fri Nov 22 10:08:17 PST 2013


 oox/source/core/contexthandler2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 945d5a010b9cd2f9ab9b804a3cc51c7b46844c3b
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Fri Nov 22 18:06:44 2013 +0000

    oox: avoid per element allocation and freeing of OUStringBuffers.
    
    Change-Id: Ie4d4d7740ae002422f73a3bfc57e1fe1ad67e50f

diff --git a/oox/source/core/contexthandler2.cxx b/oox/source/core/contexthandler2.cxx
index 735d339..9ac94e8 100644
--- a/oox/source/core/contexthandler2.cxx
+++ b/oox/source/core/contexthandler2.cxx
@@ -38,8 +38,8 @@ struct ElementInfo
     sal_Int32           mnElement;          /// The element identifier.
     bool                mbTrimSpaces;       /// True = trims leading/trailing spaces from text data.
 
-    inline explicit     ElementInfo() : mnElement( XML_TOKEN_INVALID ), mbTrimSpaces( false ) {}
-                        ElementInfo( sal_Int32 nElement ) : mnElement( nElement ), mbTrimSpaces(false) {}
+    inline explicit     ElementInfo() : maChars( 0), mnElement( XML_TOKEN_INVALID ), mbTrimSpaces( false ) {}
+                        ElementInfo( sal_Int32 nElement ) : maChars( 0 ), mnElement( nElement ), mbTrimSpaces(false) {}
 };
 
 // ============================================================================


More information about the Libreoffice-commits mailing list