summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-10-23 10:01:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-23 10:26:41 +0200
commit96365ae6e670678919951859f4ddc61e86a5df02 (patch)
treeab97b9861686548764abf5a2f340caa8109f7559 /writerfilter
parentc988da288ec473a28f61ebb53aa3ff82bab11ef4 (diff)
-Werror=maybe-uninitialized
Change-Id: I31eefa2444d7d108103818785e83816d07f8cde2
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 471462ce4344..de5cffff6cc2 100644
--- a/writerfilter/source/rtftok/rtftokenizer.cxx
+++ b/writerfilter/source/rtftok/rtftokenizer.cxx
@@ -92,8 +92,8 @@ int RTFTokenizer::resolveParse()
{
//SAL_INFO("writerfilter", OSL_THIS_FUNC << ": parsing character '" << ch << "'");
- sal_uInt32 nCurrentPos;
- if (m_xStatusIndicator.is() && (nCurrentPos = Strm().Tell()) > (nLastPos + nPercentSize))
+ sal_uInt32 nCurrentPos = Strm().Tell();
+ if (m_xStatusIndicator.is() && nCurrentPos > (nLastPos + nPercentSize))
m_xStatusIndicator->setValue(nLastPos = nCurrentPos);
if (m_nGroup < 0)