]> git.lyx.org Git - features.git/commitdiff
Rev. 13714 has a wrong fix, I just erased empty_toc_ and replaced that with an BOOST_...
authorAbdelrazak Younes <younes@lyx.org>
Sat, 22 Apr 2006 21:56:46 +0000 (21:56 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 22 Apr 2006 21:56:46 +0000 (21:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13715 a592a061-630c-0410-9148-cb99ea01b6c8

src/TocBackend.C

index 9df5b5612331e28af0469bd6f15d1a7f73178f65..5ad2b14564ba31ea81e92db11f7657e1b2c9adb6 100644 (file)
@@ -42,8 +42,6 @@ using std::endl;
 \r
 namespace lyx {\r
 \r
-static TocBackend::Toc empty_toc_;\r
-\r
 ///////////////////////////////////////////////////////////////////////////\r
 // TocBackend::Item implementation\r
 \r
@@ -132,8 +130,7 @@ TocBackend::Toc const & TocBackend::toc(std::string const & type)
 {\r
        // Is the type already supported?\r
        TocList::const_iterator it = tocs_.find(type);\r
-       if (it == tocs_.end())\r
-               return empty_toc_;\r
+       BOOST_ASSERT(it != tocs_.end());\r
 \r
        return it->second;\r
 }\r