[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sfx2/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 12 14:37:35 UTC 2019


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

New commits:
commit a5ded3182681e59ce8223cf07d192d587bd7af0e
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 15:36:32 2019 +0100

    Use INVALID_POOL_ITEM instead of magic number
    
    Change-Id: I44fdc602563164944bee40848b13de0c0c62e4f7
    Reviewed-on: https://gerrit.libreoffice.org/85015
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    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 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<const SfxPoolItem*>(-1) || DisableCallbacks::disabled())
+    if (!pShell || !pItem || pItem == INVALID_POOL_ITEM || DisableCallbacks::disabled())
         return;
 
     boost::property_tree::ptree aItem = pItem->dumpAsJSON();


More information about the Libreoffice-commits mailing list