Skip to content

Commit

Permalink
compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehazan committed Dec 3, 2017
1 parent 97e2d18 commit 28bfc16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions libs/hunspell/src/hunspell.cxx
Expand Up @@ -95,7 +95,6 @@ class HunspellImpl
std::vector<std::string> stem(const std::string& word);
std::vector<std::string> stem(const std::vector<std::string>& morph);
std::vector<std::string> analyze(const std::string& word);
int get_langnum() const;
bool input_conv(const std::string& word, std::string& dest);
bool spell(const std::string& word, int* info = NULL, std::string* root = NULL);
std::vector<std::string> suggest(const std::string& word);
Expand All @@ -105,10 +104,13 @@ class HunspellImpl
int add(const std::string& word);
int add_with_affix(const std::string& word, const std::string& example);
int remove(const std::string& word);
const std::string& get_version() const;
struct cs_info* get_csconv();
std::vector<char> dic_encoding_vec;

int get_langnum() const { return langnum; }
const char* get_try_string() const { return pAMgr->get_try_string(); }
const std::string& get_version() const { return pAMgr->get_version(); }

private:
AffixMgr* pAMgr;
std::vector<HashMgr*> m_HMgrs;
Expand Down Expand Up @@ -1336,8 +1338,8 @@ const std::string& Hunspell::get_version_cpp() const {
return m_Impl->get_version();
}

const std::string& HunspellImpl::get_version() const {
return pAMgr->get_version();
const char* Hunspell::get_try_string() const {
return m_Impl->get_try_string();
}

struct cs_info* HunspellImpl::get_csconv() {
Expand Down Expand Up @@ -1674,10 +1676,6 @@ int Hunspell::get_langnum() const {
return m_Impl->get_langnum();
}

int HunspellImpl::get_langnum() const {
return langnum;
}

bool Hunspell::input_conv(const std::string& word, std::string& dest) {
return m_Impl->input_conv(word, dest);
}
Expand Down
1 change: 1 addition & 0 deletions libs/hunspell/src/hunspell.hxx
Expand Up @@ -216,6 +216,7 @@ class LIBHUNSPELL_DLL_EXPORTED Hunspell {

struct cs_info* get_csconv();

const char* get_try_string() const;
const char* get_version() const;
const std::string& get_version_cpp() const;

Expand Down

0 comments on commit 28bfc16

Please sign in to comment.