diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-12-12 09:34:54 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-05-27 21:56:43 +0100 |
commit | c09344d3191423828c5f14f4bf9fd7eb03e78b6f (patch) | |
tree | 48a107addfc76fa9c1f4e1ad76043141b67fc50d | |
parent | 84cee9cb44a443e21400c347370a8f36c8131ee3 (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.cxx | 2 |
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(); |