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

Adam Co rattles2013 at gmail.com
Thu Jan 16 22:07:28 PST 2014


 sw/source/core/docnode/nodedump.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0853bbc3806e3564959d625f0b560f212c4f25b5
Author: Adam Co <rattles2013 at gmail.com>
Date:   Thu Jan 16 16:55:04 2014 +0200

    Small efficiency fix - move command out of loop.
    
    Change-Id: I790c3a8363f611ca10c6d816613848ec6f39c515
    Reviewed-on: https://gerrit.libreoffice.org/7465
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index abbd991..53e24e0 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -470,9 +470,10 @@ void SwRedlineTbl::dumpAsXml( xmlTextWriterPtr w )
     writer.startElement( "swredlinetbl" );
     writer.writeFormatAttribute( "ptr", "%p", this );
 
+    const SwRedlineTbl& redlineTbl = (*this);
+
     for( sal_uInt16 nCurRedlinePos = 0; nCurRedlinePos < size(); ++nCurRedlinePos )
     {
-        const SwRedlineTbl& redlineTbl = (*this);
         const SwRangeRedline* pRedline = redlineTbl[ nCurRedlinePos ];
 
         writer.startElement( "swredline" );


More information about the Libreoffice-commits mailing list