summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-18 09:02:22 +0000
committerStephan Bergmann <sbergman@redhat.com>2016-04-18 15:55:37 +0000
commit4054901d699309e98588ad7843701ded03327201 (patch)
tree29acb578ce66aaa517f07e3bb0ed29ad77a99edf
parent322eaf80a777117548d05bf350c3b569877a033b (diff)
cppcheck: silence known condition warning in cui
Change-Id: I8dfe3aa3c133ebb8ab6de058ae8335513bfb3f3b Reviewed-on: https://gerrit.libreoffice.org/24199 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--cui/source/dialogs/scriptdlg.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 52eb49143f82..14b57ca7ff20 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 )));
}
}
}