summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlimpit.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-08-31 19:58:14 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-01 06:46:46 +0000
commit705574be7ab3425ce7e43b38771b4f7e1b246f27 (patch)
tree3b16e9cd7f078882d77ae881dee141ac77a55e63 /sw/source/filter/xml/xmlimpit.cxx
parentc48f940cf888816b3282b1c82136f57c010f1236 (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 'sw/source/filter/xml/xmlimpit.cxx')
-rw-r--r--sw/source/filter/xml/xmlimpit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx
index 340e1a01713a..e7a356ba8b03 100644
--- a/sw/source/filter/xml/xmlimpit.cxx
+++ b/sw/source/filter/xml/xmlimpit.cxx
@@ -110,7 +110,7 @@ void SvXMLImportItemMapper::importXML( SfxItemSet& rSet,
&pItem );
// if its not set, try the pool
- if(SfxItemState::SET != eState && SFX_WHICH_MAX > pEntry->nWhichId )
+ if (SfxItemState::SET != eState && SfxItemPool::IsWhich(pEntry->nWhichId))
pItem = &rSet.GetPool()->GetDefaultItem(pEntry->nWhichId);
// do we have an item?