sw/source/core/docnode/nodedump.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0853bbc3806e3564959d625f0b560f212c4f25b5 Author: Adam Co <rattles2...@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 <noelgran...@gmail.com> Tested-by: Noel Grandin <noelgran...@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" ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits