From 705574be7ab3425ce7e43b38771b4f7e1b246f27 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Wed, 31 Aug 2016 19:58:14 +0200 Subject: use SfxItemPool::IsWhich instead of custom implementation Change-Id: I56cbdc1ede491486643f73a98117c5cd4ce77c1d Reviewed-on: https://gerrit.libreoffice.org/28564 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/rtf/svxrtf.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editeng') diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index a81713f09e7c..8c40e4b7b0c1 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -825,7 +825,7 @@ void SvxRTFParser::ClearStyleAttr_( SvxRTFItemStackType& rStkType ) { for( sal_uInt16 nWhich = aIter.GetCurWhich(); nWhich; nWhich = aIter.NextWhich() ) { - if( SFX_WHICH_MAX > nWhich && + if (SfxItemPool::IsWhich(nWhich) && SfxItemState::SET == rSet.GetItemState( nWhich, false, &pItem ) && rPool.GetDefaultItem( nWhich ) == *pItem ) rSet.ClearItem( nWhich ); // delete @@ -846,7 +846,7 @@ void SvxRTFParser::ClearStyleAttr_( SvxRTFItemStackType& rStkType ) && *pItem == *pSItem ) rSet.ClearItem( nWhich ); // delete } - else if( SFX_WHICH_MAX > nWhich && + else if (SfxItemPool::IsWhich(nWhich) && SfxItemState::SET == rSet.GetItemState( nWhich, false, &pItem ) && rPool.GetDefaultItem( nWhich ) == *pItem ) rSet.ClearItem( nWhich ); // delete -- cgit