From fa6dae88f22ebf0fbbb7326cf0ba3d016a448ee5 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 1 May 2009 08:35:59 +0000 Subject: [PATCH] Compile fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29458 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Thesaurus.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Thesaurus.cpp b/src/Thesaurus.cpp index f004acc787..7310e7ebe5 100644 --- a/src/Thesaurus.cpp +++ b/src/Thesaurus.cpp @@ -141,7 +141,7 @@ typedef std::map Thesauri; struct Thesaurus::Private { - ~Private() + ~Private(Thesaurus & parent): parent_(parent) { for (Thesauri::iterator it = thes_.begin(); it != thes_.end(); ++it) { @@ -149,6 +149,9 @@ struct Thesaurus::Private } } + /// + Thesaurus & parent_; + /// add a thesaurus to the list bool addThesaurus(docstring const & lang); @@ -163,7 +166,7 @@ bool Thesaurus::Private::addThesaurus(docstring const & lang) if (thes_path.empty()) return false; - if (thesaurusAvailable(lang)) + if (parent_.thesaurusAvailable(lang)) return true; FileNameList const idx_files = FileName(thes_path).dirList("idx"); -- 2.39.2