[Libreoffice-commits] .: writerfilter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Tue Jan 10 17:07:08 PST 2012


 writerfilter/source/rtftok/rtftokenizer.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b5d9e500ed8562448498cc1135b130123767134c
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Wed Jan 11 02:06:35 2012 +0100

    microopt, avoid unnecessary call to Tell()

diff --git a/writerfilter/source/rtftok/rtftokenizer.cxx b/writerfilter/source/rtftok/rtftokenizer.cxx
index 415424b..6d4b5c2 100644
--- a/writerfilter/source/rtftok/rtftokenizer.cxx
+++ b/writerfilter/source/rtftok/rtftokenizer.cxx
@@ -87,8 +87,8 @@ int RTFTokenizer::resolveParse()
     {
         //SAL_INFO("writerfilter", OSL_THIS_FUNC << ": parsing character '" << ch << "'");
 
-        sal_uInt32 nCurrentPos = Strm().Tell();
-        if (m_xStatusIndicator.is() && nCurrentPos > (nLastPos + nPercentSize))
+        sal_uInt32 nCurrentPos;
+        if (m_xStatusIndicator.is() && (nCurrentPos = Strm().Tell()) > (nLastPos + nPercentSize))
             m_xStatusIndicator->setValue(nLastPos = nCurrentPos);
 
         if (m_rImport.getGroup() < 0)


More information about the Libreoffice-commits mailing list