summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2019-05-20 20:19:33 +0300
committerTor Lillqvist <tml@collabora.com>2019-05-20 20:28:22 +0200
commitfaa8aa1e7278231887b60df9a302f5f3d0819f32 (patch)
tree60352bf60425b56b9b828ada76c9710947f6823a /include
parent459a611c9933c3b94c421b3f6036cd2e926279aa (diff)
Use DBG_UTIL instead of OSL_DEBUG_LEVEL for the OOX dumping stuff
We want it to be possible to compile an arbitrary subset of the source files for debugging. DBG_UTIL, on the other hand, has to be consistent across the whole build. We should not use OSL_DEBUG_LEVEL to switch (internal) API on/off. Change-Id: Ia5111a36326ad7ad4c72d9e8f7ad88c8dbe8e272 Reviewed-on: https://gerrit.libreoffice.org/72616 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/oox/dump/dffdumper.hxx2
-rw-r--r--include/oox/dump/dumperbase.hxx8
-rw-r--r--include/oox/dump/oledumper.hxx2
-rw-r--r--include/oox/dump/pptxdumper.hxx2
-rw-r--r--include/oox/dump/xlsbdumper.hxx2
5 files changed, 7 insertions, 9 deletions
diff --git a/include/oox/dump/dffdumper.hxx b/include/oox/dump/dffdumper.hxx
index 19d69bb6fd9a..632650d466a1 100644
--- a/include/oox/dump/dffdumper.hxx
+++ b/include/oox/dump/dffdumper.hxx
@@ -23,7 +23,7 @@
#include <oox/dump/dumperbase.hxx>
#include <sal/types.h>
-#if OOX_INCLUDE_DUMPER
+#ifdef DBG_UTIL
namespace oox { class BinaryInputStream; }
diff --git a/include/oox/dump/dumperbase.hxx b/include/oox/dump/dumperbase.hxx
index 5445be3761cf..32dea6fca6f3 100644
--- a/include/oox/dump/dumperbase.hxx
+++ b/include/oox/dump/dumperbase.hxx
@@ -40,9 +40,7 @@
#include <rtl/ustrbuf.hxx>
#include <sal/types.h>
-#define OOX_INCLUDE_DUMPER (OSL_DEBUG_LEVEL > 0)
-
-#if OOX_INCLUDE_DUMPER
+#ifdef DBG_UTIL
namespace com { namespace sun { namespace star {
namespace io { class XInputStream; }
@@ -1733,11 +1731,11 @@ do { \
return aDumper.isValid(); \
} while( false )
-#else // OOX_INCLUDE_DUMPER
+#else // DBG_UTIL
#define OOX_DUMP_FILE( DumperClassName ) (void)0
-#endif // OOX_INCLUDE_DUMPER
+#endif // DBG_UTIL
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/oox/dump/oledumper.hxx b/include/oox/dump/oledumper.hxx
index a5349252c39c..6fdcc2ba5bd2 100644
--- a/include/oox/dump/oledumper.hxx
+++ b/include/oox/dump/oledumper.hxx
@@ -32,7 +32,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-#if OOX_INCLUDE_DUMPER
+#ifdef DBG_UTIL
namespace com { namespace sun { namespace star {
namespace io { class XInputStream; }
diff --git a/include/oox/dump/pptxdumper.hxx b/include/oox/dump/pptxdumper.hxx
index 0660447da84a..158834077dc0 100644
--- a/include/oox/dump/pptxdumper.hxx
+++ b/include/oox/dump/pptxdumper.hxx
@@ -24,7 +24,7 @@
#include <oox/dump/dumperbase.hxx>
#include <rtl/ustring.hxx>
-#if OOX_INCLUDE_DUMPER
+#ifdef DBG_UTIL
namespace com { namespace sun { namespace star {
namespace io { class XInputStream; }
diff --git a/include/oox/dump/xlsbdumper.hxx b/include/oox/dump/xlsbdumper.hxx
index f031aef54b52..5992e879de5e 100644
--- a/include/oox/dump/xlsbdumper.hxx
+++ b/include/oox/dump/xlsbdumper.hxx
@@ -27,7 +27,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-#if OOX_INCLUDE_DUMPER
+#ifdef DBG_UTIL
namespace com { namespace sun { namespace star {
namespace io { class XInputStream; }