[Libreoffice-commits] core.git: sfx2/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 12 10:00:04 UTC 2019


 sfx2/source/view/lokhelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d32be257ca011316281edf2752564a421e3747a3
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Dec 12 09:34:54 2019 +0100
Commit:     Szymon Kłos <szymon.klos at 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.klos at 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();


More information about the Libreoffice-commits mailing list