]> git.lyx.org Git - features.git/blobdiff - src/Thesaurus.cpp
Compile fix.
[features.git] / src / Thesaurus.cpp
index f004acc7874857867eee05209f6339b574e15c03..7310e7ebe521f415f67ea55f6c1fd9889baf3240 100644 (file)
@@ -141,7 +141,7 @@ typedef std::map<docstring, MyThes *> 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");