From c38d460d8112079c83c6a5175bdc8cc019328c1c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Oct 2012 10:02:58 +0100 Subject: Reapply eda255b38d871bb7d20432e5730cc8c68b3e2942 ... "SvTreeList: fix singular iterator compare assertions" after commits that broke it again. Change-Id: I527fe37e2a0a9f6fbba468261892379920f02c10 --- svtools/source/contnr/treelist.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'svtools') diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index e489c7c1978e..895ef9715903 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -1378,7 +1378,8 @@ SvTreeList::GetChildIterators(const SvTreeListEntry* pParent) const { typedef std::pair IteratorPair; - IteratorPair aRet; + static const SvTreeListEntries dummy; // prevent singular iterator asserts + IteratorPair aRet(dummy.begin(), dummy.end()); if (!pParent) pParent = pRootItem; @@ -1398,7 +1399,8 @@ std::pair { typedef std::pair IteratorPair; - IteratorPair aRet; + static SvTreeListEntries dummy; // prevent singular iterator asserts + IteratorPair aRet(dummy.begin(), dummy.end()); if (!pParent) pParent = pRootItem; -- cgit