diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-27 14:50:50 +0100 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-27 15:58:28 +0000 |
commit | 70dee11c2e15e90fbd41bf331e67c1d28e094e35 (patch) | |
tree | 9bf3a9c17495788b9b1d7ef23da1b96799e81e6a /include | |
parent | ac33904d05ce40b5998b3f1b66a1454d049781be (diff) |
use a define for invalid SfxPoolItem
and use helper function IsInvalidItem() more
Change-Id: Ifd651a336a7bd4ef4f945219d765afb827465438
Reviewed-on: https://gerrit.libreoffice.org/33611
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/poolitem.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index fa2fbd1bd026..54571a6a48f8 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -108,6 +108,8 @@ enum class SfxItemState { SET = 0x0030 }; +#define INVALID_POOL_ITEM reinterpret_cast<SfxPoolItem*>(-1) + class SvXMLUnitConverter; class SfxItemPool; class SfxItemSet; @@ -227,7 +229,7 @@ inline bool IsPooledItem( const SfxPoolItem *pItem ) inline bool IsInvalidItem(const SfxPoolItem *pItem) { - return pItem == reinterpret_cast<SfxPoolItem *>(-1); + return pItem == INVALID_POOL_ITEM; } class SVL_DLLPUBLIC SfxVoidItem final: public SfxPoolItem |