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

Jochen Nitschke j.nitschke+logerrit at ok.de
Mon Apr 18 15:56:00 UTC 2016


 cui/source/dialogs/scriptdlg.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 4054901d699309e98588ad7843701ded03327201
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Mon Apr 18 09:02:22 2016 +0000

    cppcheck: silence known condition warning in cui
    
    Change-Id: I8dfe3aa3c133ebb8ab6de058ae8335513bfb3f3b
    Reviewed-on: https://gerrit.libreoffice.org/24199
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 52eb491..14b57ca 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -327,11 +327,7 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
         }
         else
         {
-            if ( children[ n ]->getType() == browse::BrowseNodeTypes::SCRIPT )
-            {
-                insertEntry( name, RID_CUIIMG_MACRO, pRootEntry, false, std::unique_ptr< SFEntry >(new SFEntry( OBJTYPE_METHOD, children[ n ],model )));
-
-            }
+            insertEntry( name, RID_CUIIMG_MACRO, pRootEntry, false, std::unique_ptr< SFEntry >(new SFEntry( OBJTYPE_METHOD, children[ n ],model )));
         }
     }
 }


More information about the Libreoffice-commits mailing list