summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-05-15 11:23:33 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-05-15 11:24:54 -0400
commit71417f2b7236f6ab8d40153e30b89e69123140c5 (patch)
tree63d6dad088187816c5fc8d1876f2f616afbe0848 /svtools
parent71e5b1ba256bd472e99118c1730fa89cc2b64dbd (diff)
Actually this empty() check here is redundant.
ResortChildren() does that at the very beginning. Change-Id: I696c9d796cc6631048fb3d9409d6eda1085a7612
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelist.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index a64c1e045051..e8f6608d8b2e 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -1541,8 +1541,7 @@ void SvTreeList::ResortChildren( SvTreeListEntry* pParent )
for (; it != itEnd; ++it)
{
SvTreeListEntry& r = *it;
- if (!r.maChildren.empty())
- ResortChildren(&r);
+ ResortChildren(&r);
}
SetListPositions(pParent->maChildren); // correct list position in target list