diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-03-20 14:23:40 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-03-21 16:30:59 +0100 |
commit | 9adcf67c9b164d019eebe45279bcaa91b0ce471a (patch) | |
tree | 5e323faf067516423e0552c9775d56cb3e5d1a44 /sfx2 | |
parent | 03ab46c8a189b751ed1acffd0b575fae584c1d00 (diff) |
Drop C/C++ DEBUG macro
...(that was defined iff OSL_DEBUG_LEVEL >= 2) and replace its uses with
OSL_DEBUG_LEVEL directly
Change-Id: I807c15a02cc8ced9852287df0afb4808761d19d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165067
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/DeckTitleBar.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/Panel.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarToolBox.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/TabBar.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx index 9e12fd15c6ab..f425e21a92bc 100644 --- a/sfx2/source/sidebar/DeckTitleBar.cxx +++ b/sfx2/source/sidebar/DeckTitleBar.cxx @@ -26,7 +26,7 @@ #include <vcl/outdev.hxx> #include <vcl/ptrstyle.hxx> -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 #include <sfx2/sidebar/Tools.hxx> #endif diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx index 5998cb2ee94c..6bc1424e7d41 100644 --- a/sfx2/source/sidebar/Panel.cxx +++ b/sfx2/source/sidebar/Panel.cxx @@ -27,7 +27,7 @@ #include <tools/json_writer.hxx> -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 #include <sfx2/sidebar/Tools.hxx> #include <sfx2/sidebar/Deck.hxx> #endif diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index a9ec224cfe7d..468ad56f080f 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -908,7 +908,7 @@ void SidebarController::SwitchToDeck ( if ( ! mpCurrentDeck) return; -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 // Show the context name in the deck title bar. DeckTitleBar* pDebugTitleBar = mpCurrentDeck->GetTitleBar(); if (pDebugTitleBar) diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx index 349e5bef1497..768262e3003f 100644 --- a/sfx2/source/sidebar/SidebarToolBox.cxx +++ b/sfx2/source/sidebar/SidebarToolBox.cxx @@ -75,7 +75,7 @@ SidebarToolBox::SidebarToolBox (vcl::Window* pParentWindow) mxImageController = sfx2::sidebar::ControllerFactory::CreateImageController(xFrame, xWidget); } -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 SetText(OUString("SidebarToolBox")); #endif } diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx index 3ccaa7ebd454..b5ae63842357 100644 --- a/sfx2/source/sidebar/TabBar.cxx +++ b/sfx2/source/sidebar/TabBar.cxx @@ -82,7 +82,7 @@ TabBar::TabBar(vcl::Window* pParentWindow, mxMenuButton->connect_toggled(LINK(this, TabBar, OnToolboxClicked)); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 SetText(OUString("TabBar")); #endif } |