From 96365ae6e670678919951859f4ddc61e86a5df02 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 23 Oct 2012 10:01:49 +0200 Subject: -Werror=maybe-uninitialized Change-Id: I31eefa2444d7d108103818785e83816d07f8cde2 --- writerfilter/source/rtftok/rtftokenizer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'writerfilter/source') 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) -- cgit