]> git.lyx.org Git - lyx.git/blobdiff - src/Thesaurus.cpp
fix "make check" with gcc 4.3
[lyx.git] / src / Thesaurus.cpp
index 7fd57d20c1e1a3df5114c2076c2f039a09091954..357ddbbe0bf42c919b08996ca031280f1f91c5ee 100644 (file)
@@ -110,7 +110,7 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const & t, docstring const &)
 bool Thesaurus::thesaurusAvailable(docstring const & lang) const
 {
        // we support English only
-       return prefixIs(lang, "en_");
+       return prefixIs(lang, from_ascii("en_"));
 }
 
 #endif // HAVE_LIBAIKSAURUS
@@ -265,6 +265,15 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const & t, docstring const & lan
 }
 
 #else
+#ifndef HAVE_LIBAIKSAURUS
+Thesaurus::Thesaurus()
+{
+}
+
+
+Thesaurus::~Thesaurus()
+{
+}
 
 
 Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
@@ -272,6 +281,13 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
        return Meanings();
 }
 
+
+bool Thesaurus::thesaurusAvailable(docstring const & lang) const
+{
+       return false;
+}
+
+#endif
 #endif // HAVE_LIBMYTHES
 
 // Global instance