[Libreoffice-commits] core.git: writerperfect/source
Stephan Bergmann
sbergman at redhat.com
Thu May 21 08:49:12 PDT 2015
writerperfect/source/writer/MSWorksImportFilter.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit dae9a386bacc08a55eda96e1e8925883a4fa494d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu May 21 16:46:08 2015 +0100
-fsanitize=bool (during CppunitTest_writerperfect_writer)
...as libwps::WPSDocument::isFileFormatSupported doesn't necessarily write false
into its needCharSetEncoding param ("A flag set to true if we need the character
set encoding"), whether or not that's a good idea.
Change-Id: Ib094a0fed84b6e6ff66e9b8a2524f55a60de64ef
diff --git a/writerperfect/source/writer/MSWorksImportFilter.cxx b/writerperfect/source/writer/MSWorksImportFilter.cxx
index 018f790..90bb62d 100644
--- a/writerperfect/source/writer/MSWorksImportFilter.cxx
+++ b/writerperfect/source/writer/MSWorksImportFilter.cxx
@@ -37,7 +37,7 @@ bool MSWorksImportFilter::doImportDocument(librevenge::RVNGInputStream &rInput,
{
libwps::WPSKind kind = libwps::WPS_TEXT;
libwps::WPSCreator creator;
- bool needEncoding;
+ bool needEncoding = false;
const libwps::WPSConfidence confidence = libwps::WPSDocument::isFileFormatSupported(&rInput, kind, creator, needEncoding);
std::string fileEncoding("");
More information about the Libreoffice-commits
mailing list