From d4eb4954a0f0319016aa7053e1c28b72e3117e26 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 22 Apr 2006 21:56:46 +0000 Subject: [PATCH] Rev. 13714 has a wrong fix, I just erased empty_toc_ and replaced that with an BOOST_ASSERT. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13715 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TocBackend.C | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/TocBackend.C b/src/TocBackend.C index 9df5b56123..5ad2b14564 100644 --- a/src/TocBackend.C +++ b/src/TocBackend.C @@ -42,8 +42,6 @@ using std::endl; namespace lyx { -static TocBackend::Toc empty_toc_; - /////////////////////////////////////////////////////////////////////////// // TocBackend::Item implementation @@ -132,8 +130,7 @@ TocBackend::Toc const & TocBackend::toc(std::string const & type) { // Is the type already supported? TocList::const_iterator it = tocs_.find(type); - if (it == tocs_.end()) - return empty_toc_; + BOOST_ASSERT(it != tocs_.end()); return it->second; } -- 2.39.2