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 /cui | |
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 'cui')
-rw-r--r-- | cui/source/dialogs/srchxtra.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx index d6e0578ad0cc..23342dd3c3fc 100644 --- a/cui/source/dialogs/srchxtra.cxx +++ b/cui/source/dialogs/srchxtra.cxx @@ -196,7 +196,7 @@ void SvxSearchAttributeDialog::dispose() IMPL_LINK_NOARG(SvxSearchAttributeDialog, OKHdl, Button*, void) { SearchAttrItem aInvalidItem; - aInvalidItem.pItem = reinterpret_cast<SfxPoolItem*>(-1); + aInvalidItem.pItem = INVALID_POOL_ITEM; for ( sal_uLong i = 0; i < m_pAttrLB->GetEntryCount(); ++i ) { @@ -213,7 +213,7 @@ IMPL_LINK_NOARG(SvxSearchAttributeDialog, OKHdl, Button*, void) { if( !IsInvalidItem( rItem.pItem ) ) delete rItem.pItem; - rItem.pItem = reinterpret_cast<SfxPoolItem*>(-1); + rItem.pItem = INVALID_POOL_ITEM; } else if( IsInvalidItem( rItem.pItem ) ) rItem.pItem = nullptr; |