summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-09-11 17:08:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 06:48:17 +0200
commit7e2a6709d9511f983f9981258c38ccc125bcd3fe (patch)
tree6a7b444d3e8b65c5d22e9bcf26ee4ae04d04b03c /svtools
parent75ca51725274b95417aa2c7f169145e3cd3b3b4f (diff)
cppcheck: identicalConditionAfterEarlyExit
Change-Id: I59d91390ee303eadc10315405cce44cfd7c37d56 Reviewed-on: https://gerrit.libreoffice.org/42179 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelist.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index ce0a07cef863..8d6c72b570c4 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -433,7 +433,7 @@ sal_uLong SvTreeList::GetChildCount( const SvTreeListEntry* pParent ) const
if ( !pParent )
return GetEntryCount();
- if (!pParent || pParent->m_Children.empty())
+ if (pParent->m_Children.empty())
return 0;
sal_uLong nCount = 0;