From 28bfc1633faded06c14308959796cc350878a896 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 Dec 2017 15:22:25 +0300 Subject: [PATCH] compilation fix --- libs/hunspell/src/hunspell.cxx | 14 ++++++-------- libs/hunspell/src/hunspell.hxx | 1 + 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/libs/hunspell/src/hunspell.cxx b/libs/hunspell/src/hunspell.cxx index 1ef11df3412..b1535013fe8 100644 --- a/libs/hunspell/src/hunspell.cxx +++ b/libs/hunspell/src/hunspell.cxx @@ -95,7 +95,6 @@ class HunspellImpl std::vector stem(const std::string& word); std::vector stem(const std::vector& morph); std::vector 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 suggest(const std::string& word); @@ -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 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 m_HMgrs; @@ -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() { @@ -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); } diff --git a/libs/hunspell/src/hunspell.hxx b/libs/hunspell/src/hunspell.hxx index a06bdd43ab4..f728f829c23 100644 --- a/libs/hunspell/src/hunspell.hxx +++ b/libs/hunspell/src/hunspell.hxx @@ -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;