Kaydet (Commit) eda255b3 authored tarafından Michael Stahl's avatar Michael Stahl

SvTreeList: fix singular iterator compare assertions

... which will be introduced tomorrow by 3fa955d7

Change-Id: I5d74a1c018fab69102382d6ea0b2739dd102e5bc
üst 41145f51
...@@ -1444,7 +1444,8 @@ std::pair<SvTreeEntryList::const_iterator,SvTreeEntryList::const_iterator> ...@@ -1444,7 +1444,8 @@ std::pair<SvTreeEntryList::const_iterator,SvTreeEntryList::const_iterator>
{ {
typedef std::pair<SvTreeEntryList::const_iterator,SvTreeEntryList::const_iterator> IteratorPair; typedef std::pair<SvTreeEntryList::const_iterator,SvTreeEntryList::const_iterator> IteratorPair;
IteratorPair aRet; static const SvTreeEntryList dummy; // prevent singular iterator asserts
IteratorPair aRet(dummy.begin(), dummy.end());
if (!pParent) if (!pParent)
pParent = pRootItem; pParent = pRootItem;
...@@ -1464,7 +1465,8 @@ std::pair<SvTreeEntryList::iterator,SvTreeEntryList::iterator> ...@@ -1464,7 +1465,8 @@ std::pair<SvTreeEntryList::iterator,SvTreeEntryList::iterator>
{ {
typedef std::pair<SvTreeEntryList::iterator,SvTreeEntryList::iterator> IteratorPair; typedef std::pair<SvTreeEntryList::iterator,SvTreeEntryList::iterator> IteratorPair;
IteratorPair aRet; static SvTreeEntryList dummy; // prevent singular iterator asserts
IteratorPair aRet(dummy.begin(), dummy.end());
if (!pParent) if (!pParent)
pParent = pRootItem; pParent = pRootItem;
......
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