[Libreoffice-commits] core.git: svtools/source
Kohei Yoshida
kohei.yoshida at collabora.com
Thu May 15 08:24:39 PDT 2014
svtools/source/contnr/treelist.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 71417f2b7236f6ab8d40153e30b89e69123140c5
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Thu May 15 11:23:33 2014 -0400
Actually this empty() check here is redundant.
ResortChildren() does that at the very beginning.
Change-Id: I696c9d796cc6631048fb3d9409d6eda1085a7612
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index a64c1e0..e8f6608 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
More information about the Libreoffice-commits
mailing list