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

udareechk udareeck at gmail.com
Thu Oct 5 15:58:31 UTC 2017


 framework/source/uielement/toolbarsmenucontroller.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2f3b95246362aa8290e06b29fc44ee8dafa48aa8
Author: udareechk <udareeck at gmail.com>
Date:   Wed Sep 20 18:25:43 2017 +0530

    tdf#96505 Get rid of cargo cult long integer literals
    
    toolbarsmenucontrollers.cxx file
    
    Change-Id: I25a842c2be3c6edbc8c0644e78cf36a9e45176a7
    Reviewed-on: https://gerrit.libreoffice.org/42561
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index e08891f770b9..e004b693e388 100644
--- a/framework/source/uielement/toolbarsmenucontroller.cxx
+++ b/framework/source/uielement/toolbarsmenucontroller.cxx
@@ -385,7 +385,7 @@ void ToolbarsMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > co
                 PopupMenu* pVCLPopupMenu = pXPopupMenu ? static_cast<PopupMenu *>(pXPopupMenu->GetMenu()) : nullptr;
                 assert(pVCLPopupMenu);
                 if (pVCLPopupMenu)
-                    pVCLPopupMenu->SetUserValue( nIndex, sal_uLong( aSortedTbs[i].bContextSensitive ? 1L : 0L ));
+                    pVCLPopupMenu->SetUserValue( nIndex, sal_uLong( aSortedTbs[i].bContextSensitive ? 1 : 0 ));
             }
 
             // use VCL popup menu pointer to set vital information that are not part of the awt implementation


More information about the Libreoffice-commits mailing list