SvTreeList: fix singular iterator compare assertions

... which will be introduced tomorrow by 3fa955d7

Change-Id: I5d74a1c018fab69102382d6ea0b2739dd102e5bc
This commit is contained in:
Michael Stahl
2012-10-22 20:17:01 +02:00
parent 41145f51c9
commit eda255b38d

View File

@@ -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;