SvTreeList: fix singular iterator compare assertions
... which will be introduced tomorrow by 3fa955d7
Change-Id: I5d74a1c018fab69102382d6ea0b2739dd102e5bc
This commit is contained in:
@@ -1444,7 +1444,8 @@ std::pair<SvTreeEntryList::const_iterator,SvTreeEntryList::const_iterator>
|
||||
{
|
||||
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)
|
||||
pParent = pRootItem;
|
||||
@@ -1464,7 +1465,8 @@ std::pair<SvTreeEntryList::iterator,SvTreeEntryList::iterator>
|
||||
{
|
||||
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)
|
||||
pParent = pRootItem;
|
||||
|
Reference in New Issue
Block a user