summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-17 16:03:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-17 16:03:43 +0100
commitf2f08dd3ce1e1ce0c3242b8cf53d24683352535c (patch)
treec779d5585c6e49c72306287dfbcaff25667d7c36 /sw
parent1e46bf5e15e9b149537ca636669beab9702dba93 (diff)
Silence MSVC warning C4701
..."potentially uninitialized local variable 'nProgressReference' used" after 49f05934edd3723666b7c52eccbf4d0c9a688eb7 "coverity#1427629 Unchecked return value" Change-Id: I710221f730c1c8fb416378de1a57f7e713244cef
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/xml/xmlmeta.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlmeta.cxx b/sw/source/filter/xml/xmlmeta.cxx
index c85fff068057..ddc37f10c8b9 100644
--- a/sw/source/filter/xml/xmlmeta.cxx
+++ b/sw/source/filter/xml/xmlmeta.cxx
@@ -146,7 +146,7 @@ void SwXMLImport::SetStatistics(
// guesstimate PROGRESS_BAR_STEPS each for meta+settings, styles,
// and autostyles.
bool bSetFallback = true;
- sal_Int32 nProgressReference;
+ sal_Int32 nProgressReference = sal_Int32(); // silence C4701
if (nTokens & XML_TOK_META_STAT_PARA)
{
nProgressReference = static_cast<sal_Int32>(aDocStat.nPara);