summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-24 19:12:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-25 18:56:19 +0000
commit4563921f23d79f6e3e431a314064c6dd201cfee2 (patch)
tree60a8d4c79cac6f83f9e95254fc5bbebe0dc38f63 /svl
parent4954fff93ad353fc4dfab0ced51084dfcd6043ba (diff)
remove unused parameter
bTotalRanges is never used. SFX_ITEMSET_NO_DEFAULT_CTOR is no where else used. Change-Id: Ia35ea875f16a8ca04c2173b01074113f1825f565 Reviewed-on: https://gerrit.libreoffice.org/29248 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itemset.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index ceb3f2764fa1..f8e953ac80ad 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -47,25 +47,11 @@ static const sal_uInt16 nInitCount = 10; // Single USHORTs => 5 pairs without '0
* For Sfx programmers: an SfxItemSet constructed in this way cannot
* contain any Items with SlotIds as Which values.
*/
-SfxItemSet::SfxItemSet
-(
- SfxItemPool& rPool, /* Target Pool for the SfxPoolItems which are
- added to this SfxItemSet */
- bool bTotalRanges /* Take over complete pool ranges? */
-)
+SfxItemSet::SfxItemSet(SfxItemPool& rPool)
: m_pPool( &rPool )
, m_pParent(nullptr)
, m_nCount(0)
{
-// DBG_ASSERT( bTotalRanges || abs( &bTotalRanges - this ) < 1000,
-// "please use suitable ranges" );
-#if defined DBG_UTIL && defined SFX_ITEMSET_NO_DEFAULT_CTOR
- if ( !bTotalRanges )
- *(int*)0 = 0; // GPF
-#else
- (void) bTotalRanges; // avoid warnings
-#endif
-
m_pWhichRanges = const_cast<sal_uInt16*>(m_pPool->GetFrozenIdRanges());
assert( m_pWhichRanges && "don't create ItemSets with full range before FreezeIdRanges()" );
if (!m_pWhichRanges)