sfx2/source/view/lokhelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d32be257ca011316281edf2752564a421e3747a3 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Thu Dec 12 09:34:54 2019 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Dec 12 10:58:49 2019 +0100 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.k...@collabora.com> diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 181d0b385cae..4670bd098663 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -212,7 +212,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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits