From e327fd0c5dcb927990bdf1a34d6f99f11edb22a9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Mar 2014 09:49:52 +0200 Subject: debug only code SfxItemPool::GetMasterPool() const Change-Id: Ia3c53e64f6e39618b4cc85fae5f213e67041a725 --- include/svl/itempool.hxx | 2 ++ svl/source/items/itempool.cxx | 2 ++ unusedcode.easy | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index 4b8e421d095d..9a44d5a88c4e 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -194,7 +194,9 @@ public: void SetStoringRange( sal_uInt16 nFrom, sal_uInt16 nTo ); void SetSecondaryPool( SfxItemPool *pPool ); SfxItemPool* GetSecondaryPool() const; +#ifdef DBG_UTIL SfxItemPool* GetMasterPool() const; +#endif void FreezeIdRanges(); void Delete(); diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index c293c384474f..861a3fa9ad37 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -918,10 +918,12 @@ SfxItemPool* SfxItemPool::GetSecondaryPool() const return pImp->mpSecondary; } +#ifdef DBG_UTIL SfxItemPool* SfxItemPool::GetMasterPool() const { return pImp->mpMaster; } +#endif void SfxItemPool::FreezeIdRanges() diff --git a/unusedcode.easy b/unusedcode.easy index 344be2e92683..b538e242257f 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -44,7 +44,6 @@ SfxBindings::GetSystemWindow() const SfxDispatcher::IsOnTop(SfxShell const&) SfxGrabBagItem::SetGrabBag(std::map, std::allocator > > const&) SfxInt64Item::SetValue(long) -SfxItemPool::GetMasterPool() const SimpleErrorHandler::SimpleErrorHandler() StyleSettings::SetActiveColor2(Color const&) StyleSettings::SetCursorSize(long) -- cgit