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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 4 17:48:46 UTC 2019


 vcl/source/window/toolbox2.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 78cf248d13360e468bcb317cee2cf8239da5f99a
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu Oct 31 15:12:40 2019 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Nov 4 18:48:03 2019 +0100

    Remove useless bool manipulation.
    
    Must be a left over of sal_Bool -> bool conversion.
    
    Change-Id: I8b37e513dc1f36b015b29ce3dad4ade2df7807d9
    Reviewed-on: https://gerrit.libreoffice.org/81898
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    (cherry picked from commit f875aca60c46f070e72f61836b33c39b62adcda3)
    Reviewed-on: https://gerrit.libreoffice.org/82029

diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 9a618a0b07eb..1e8efa249a57 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1257,8 +1257,6 @@ void ToolBox::EnableItem( sal_uInt16 nItemId, bool bEnable )
     if ( nPos != ITEM_NOTFOUND )
     {
         ImplToolItem* pItem = &mpData->m_aItems[nPos];
-        if ( bEnable )
-            bEnable = true;
         if ( pItem->mbEnabled != bEnable )
         {
             pItem->mbEnabled = bEnable;


More information about the Libreoffice-commits mailing list