diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-31 19:58:14 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-01 06:46:46 +0000 |
commit | 705574be7ab3425ce7e43b38771b4f7e1b246f27 (patch) | |
tree | 3b16e9cd7f078882d77ae881dee141ac77a55e63 /editeng | |
parent | c48f940cf888816b3282b1c82136f57c010f1236 (diff) |
use SfxItemPool::IsWhich instead of custom implementation
Change-Id: I56cbdc1ede491486643f73a98117c5cd4ce77c1d
Reviewed-on: https://gerrit.libreoffice.org/28564
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |