From: Abdelrazak Younes Date: Sat, 22 Apr 2006 21:56:46 +0000 (+0000) Subject: Rev. 13714 has a wrong fix, I just erased empty_toc_ and replaced that with an BOOST_... X-Git-Tag: 1.6.10~13308 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d4eb4954a0f0319016aa7053e1c28b72e3117e26;p=features.git 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 --- 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; }