diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-10-22 20:17:01 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-10-22 20:18:35 +0200 |
commit | eda255b38d871bb7d20432e5730cc8c68b3e2942 (patch) | |
tree | 4a9a8a64d014e32bf383f91fa6714ace3b423b03 /svtools | |
parent | 41145f51c9efa81e55db9a6e928d422c252ccc4c (diff) |
SvTreeList: fix singular iterator compare assertions
... which will be introduced tomorrow by 3fa955d7
Change-Id: I5d74a1c018fab69102382d6ea0b2739dd102e5bc
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index 48e6df78e26b..8f159419a834 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -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; |