summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2012-01-11 02:06:35 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2012-01-11 02:06:35 +0100
commitb5d9e500ed8562448498cc1135b130123767134c (patch)
tree2c95a2aeab418a8da0c20e5d03c8825cb167e0cd /writerfilter
parent92c7b6733e55a6ab62bc231ecf0ffd5c0da7c8d2 (diff)
microopt, avoid unnecessary call to Tell()
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtftokenizer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/rtftok/rtftokenizer.cxx b/writerfilter/source/rtftok/rtftokenizer.cxx
index 415424b47a12..6d4b5c2c5b7b 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)