summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-12-12 09:34:54 +0100
committerMichael Meeks <michael.meeks@collabora.com>2020-05-27 21:56:43 +0100
commitc09344d3191423828c5f14f4bf9fd7eb03e78b6f (patch)
tree48a107addfc76fa9c1f4e1ad76043141b67fc50d
parent84cee9cb44a443e21400c347370a8f36c8131ee3 (diff)
Use INVALID_POOL_ITEM instead of magic number
Change-Id: I44fdc602563164944bee40848b13de0c0c62e4f7 Reviewed-on: https://gerrit.libreoffice.org/85019 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--sfx2/source/view/lokhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index e5cbf0173285..f4c9e6cbdb8d 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -210,7 +210,7 @@ namespace {
void SfxLokHelper::sendUnoStatus(const SfxViewShell* pShell, const SfxPoolItem* pItem)
{
- if (!pShell || !pItem || pItem == reinterpret_cast<const SfxPoolItem*>(-1))
+ if (!pShell || !pItem || pItem == INVALID_POOL_ITEM)
return;
boost::property_tree::ptree aItem = pItem->dumpAsJSON();