diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-11-18 14:58:45 -0500 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-24 21:01:33 +0200 |
commit | 0c4a2b126c4aaa6f87baa1d86973b25fe7691009 (patch) | |
tree | ab62038289ae99b753b20278db6f8e186144c1d8 /sd | |
parent | 426eff7c6652033518c22d124f22c423e1ae054b (diff) |
sd: use OSL_DEBUG_LEVEL instead of DEBUG
Change-Id: I0703a1564a23657e956e43fe4cbf1d9549acb94f
Reviewed-on: https://gerrit.libreoffice.org/68258
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/76240
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationTracer.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationTracer.hxx | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationTracer.cxx b/sd/source/ui/framework/configuration/ConfigurationTracer.cxx index aef2366824c6..7ddaa23ae906 100644 --- a/sd/source/ui/framework/configuration/ConfigurationTracer.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationTracer.cxx @@ -19,6 +19,7 @@ #include "ConfigurationTracer.hxx" +#include <com/sun/star/drawing/framework/XConfiguration.hpp> #include <sal/log.hxx> using namespace ::com::sun::star::uno; @@ -30,11 +31,11 @@ void ConfigurationTracer::TraceConfiguration ( const Reference<XConfiguration>& rxConfiguration, const char* pMessage) { -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >=1 SAL_INFO("sd.ui","" << pMessage << " at " << rxConfiguration.get() << " {"); if (rxConfiguration.is()) { - TraceBoundResources(rxConfiguration, NULL, 0); + TraceBoundResources(rxConfiguration, nullptr, 0); } else { @@ -47,7 +48,7 @@ void ConfigurationTracer::TraceConfiguration ( #endif } -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >=1 void ConfigurationTracer::TraceBoundResources ( const Reference<XConfiguration>& rxConfiguration, const Reference<XResourceId>& rxResourceId, diff --git a/sd/source/ui/framework/configuration/ConfigurationTracer.hxx b/sd/source/ui/framework/configuration/ConfigurationTracer.hxx index c2fc122b499a..facedd3f4600 100644 --- a/sd/source/ui/framework/configuration/ConfigurationTracer.hxx +++ b/sd/source/ui/framework/configuration/ConfigurationTracer.hxx @@ -23,6 +23,7 @@ #include <sal/types.h> namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XConfiguration; } } } } } +namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XResourceId; } } } } } namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } } namespace sd { namespace framework { @@ -36,7 +37,7 @@ public: static void TraceConfiguration ( const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration, const char* pMessage); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >=1 static void TraceBoundResources ( const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration, const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId, |