libmwaw: avoid 'MWAWDocument::isFileFormatSupported()' when opening .doc files

There is only a single libmwaw switch to enable both "noopt + symbols"
and "debug messages", and we enable that switch in debug builds.
Backport upstream patch to avoid a debug message during type detection.

Change-Id: I53440ceed90529e3db7c9d91c788c7a3b2723eb1
This commit is contained in:
Miklos Vajna 2014-08-13 14:32:44 +02:00
parent 5ce80c9728
commit 6b3869cf74
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,24 @@
From 3355f5314cd01d8c264c91014d136a58f68d03f4 Mon Sep 17 00:00:00 2001
From: osnola <alonso@loria.fr>
Date: Wed, 13 Aug 2014 11:00:35 +0200
Subject: [PATCH] MWAWDocument.cxx: remove an useless debug message.
---
src/lib/MWAWDocument.cxx | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/lib/MWAWDocument.cxx b/src/lib/MWAWDocument.cxx
index 5591f70..8246bf7 100644
--- a/src/lib/MWAWDocument.cxx
+++ b/src/lib/MWAWDocument.cxx
@@ -109,7 +109,6 @@ MWAWDocument::Confidence MWAWDocument::isFileFormatSupported(librevenge::RVNGInp
}
try {
- MWAW_DEBUG_MSG(("MWAWDocument::isFileFormatSupported()\n"));
MWAWInputStreamPtr ip(new MWAWInputStream(input, false, true));
MWAWInputStreamPtr rsrc=ip->getResourceForkStream();
shared_ptr<MWAWRSRCParser> rsrcParser;
--
1.8.4.5

View file

@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libmwaw,\
external/libmwaw/0001-librevenge-stream-is-optional-don-t-depend-on-it.patch \
external/libmwaw/0002-librevenge-stream-is-optional-don-t-depend-on-it.patch \
external/libmwaw/0001-msvc2013-does-not-like-this.patch \
external/libmwaw/0001-MWAWDocument.cxx-remove-an-useless-debug-message.patch \
))
# vim: set noet sw=4 ts=4: