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>
This commit is contained in:
Tor Lillqvist
2019-05-20 20:28:22 +02:00
committed by Tor Lillqvist
parent 459a611c99
commit faa8aa1e72
9 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
#include <oox/dump/dumperbase.hxx>
#include <sal/types.h>
#if OOX_INCLUDE_DUMPER
#ifdef DBG_UTIL
namespace oox { class BinaryInputStream; }
+3 -5
View File
@@ -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: */
+1 -1
View File
@@ -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; }
+1 -1
View File
@@ -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; }
+1 -1
View File
@@ -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; }
+1 -1
View File
@@ -19,7 +19,7 @@
#include <oox/dump/dffdumper.hxx>
#if OOX_INCLUDE_DUMPER
#ifdef DBG_UTIL
namespace oox {
namespace dump {
+1 -1
View File
@@ -34,7 +34,7 @@
#include <oox/helper/textinputstream.hxx>
#include <tools/time.hxx>
#if OOX_INCLUDE_DUMPER
#ifdef DBG_UTIL
namespace oox {
namespace dump {
+1 -1
View File
@@ -29,7 +29,7 @@
#include <oox/ole/olestorage.hxx>
#include <oox/ole/vbainputstream.hxx>
#if OOX_INCLUDE_DUMPER
#ifdef DBG_UTIL
namespace oox {
namespace dump {
+1 -1
View File
@@ -24,7 +24,7 @@
#include <oox/helper/zipstorage.hxx>
#include <oox/ole/olestorage.hxx>
#if OOX_INCLUDE_DUMPER
#ifdef DBG_UTIL
namespace oox {
namespace dump {