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 /svl | |
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 'svl')
-rw-r--r-- | svl/source/items/stylepool.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx index 22900163ad59..0f3959cb4687 100644 --- a/svl/source/items/stylepool.cxx +++ b/svl/source/items/stylepool.cxx @@ -343,14 +343,14 @@ private: std::map< const SfxItemSet*, OUString> maParentNames; // #i86923# std::unique_ptr<SfxItemSet> mpIgnorableItems; -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 sal_Int32 mnCount; #endif public: // #i86923# explicit StylePoolImpl( SfxItemSet const * pIgnorableItems ) : -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 mnCount(0), #endif mpIgnorableItems( pIgnorableItems != nullptr @@ -416,14 +416,14 @@ std::shared_ptr<SfxItemSet> StylePoolImpl::insertItemSet( const SfxItemSet& rSet { pCurNode->setItemSet( rSet ); bNonShareable = false; // to avoid a double insertion -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 ++mnCount; #endif } // If rSet contains at least one non poolable item, a new itemset has to be inserted if( bNonShareable ) pCurNode->setItemSet( rSet ); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 { sal_Int32 nCheck = -1; std::unique_ptr<IStylePoolIteratorAccess> pIter = createIterator(false,false); |