[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Wed Jan 17 15:05:03 UTC 2018
sw/source/filter/xml/xmlmeta.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f2f08dd3ce1e1ce0c3242b8cf53d24683352535c
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jan 17 16:03:43 2018 +0100
Silence MSVC warning C4701
..."potentially uninitialized local variable 'nProgressReference' used" after
49f05934edd3723666b7c52eccbf4d0c9a688eb7 "coverity#1427629 Unchecked return
value"
Change-Id: I710221f730c1c8fb416378de1a57f7e713244cef
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);
More information about the Libreoffice-commits
mailing list