From a5ded3182681e59ce8223cf07d192d587bd7af0e Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 12 Dec 2019 09:34:54 +0100 Subject: Use INVALID_POOL_ITEM instead of magic number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I44fdc602563164944bee40848b13de0c0c62e4f7 Reviewed-on: https://gerrit.libreoffice.org/85015 Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos --- sfx2/source/view/lokhelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 2232b397996d..58076bf0143e 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -241,7 +241,7 @@ namespace { void SfxLokHelper::sendUnoStatus(const SfxViewShell* pShell, const SfxPoolItem* pItem) { - if (!pShell || !pItem || pItem == reinterpret_cast(-1) || DisableCallbacks::disabled()) + if (!pShell || !pItem || pItem == INVALID_POOL_ITEM || DisableCallbacks::disabled()) return; boost::property_tree::ptree aItem = pItem->dumpAsJSON(); -- cgit