diff options
author | Adam Co <rattles2013@gmail.com> | 2014-01-16 16:55:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-01-17 06:07:03 +0000 |
commit | 0853bbc3806e3564959d625f0b560f212c4f25b5 (patch) | |
tree | 24584b0fffde0d044927e49dc7c0b309360e48c7 | |
parent | 12ca5ec6f4485ab8c837d32eefdf39a2dda025a4 (diff) |
Small efficiency fix - move command out of loop.
Change-Id: I790c3a8363f611ca10c6d816613848ec6f39c515
Reviewed-on: https://gerrit.libreoffice.org/7465
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index abbd9918d06e..53e24e000469 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" ); |