diff options
-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 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<SvTreeListEntries::const_iterator, SvTreeListEntries::const_iterator> 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<SvTreeListEntries::iterator, SvTreeListEntries::iterator> { typedef std::pair<SvTreeListEntries::iterator, SvTreeListEntries::iterator> IteratorPair; - IteratorPair aRet; + static SvTreeListEntries dummy; // prevent singular iterator asserts + IteratorPair aRet(dummy.begin(), dummy.end()); if (!pParent) pParent = pRootItem; |