Kaydet (Commit) 71417f2b authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Actually this empty() check here is redundant.

ResortChildren() does that at the very beginning.

Change-Id: I696c9d796cc6631048fb3d9409d6eda1085a7612
üst 71e5b1ba
...@@ -1541,8 +1541,7 @@ void SvTreeList::ResortChildren( SvTreeListEntry* pParent ) ...@@ -1541,8 +1541,7 @@ void SvTreeList::ResortChildren( SvTreeListEntry* pParent )
for (; it != itEnd; ++it) for (; it != itEnd; ++it)
{ {
SvTreeListEntry& r = *it; SvTreeListEntry& r = *it;
if (!r.maChildren.empty()) ResortChildren(&r);
ResortChildren(&r);
} }
SetListPositions(pParent->maChildren); // correct list position in target list SetListPositions(pParent->maChildren); // correct list position in target list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment