diff --git a/indra/llui/llhunspell.cpp b/indra/llui/llhunspell.cpp index 3a549925a4..cc425df83a 100644 --- a/indra/llui/llhunspell.cpp +++ b/indra/llui/llhunspell.cpp @@ -62,14 +62,14 @@ LLHunspellWrapper::~LLHunspellWrapper() delete m_pHunspell; } -bool LLHunspellWrapper::checkSpelling(const std::string& strWord) +bool LLHunspellWrapper::checkSpelling(const std::string& strWord) const { if ( (!s_fSpellCheck) || (!m_pHunspell) || (strWord.length() < 3) ) return true; return m_pHunspell->spell(strWord.c_str()); } -S32 LLHunspellWrapper::getSuggestions(const std::string& strWord, std::vector& strSuggestionList) +S32 LLHunspellWrapper::getSuggestions(const std::string& strWord, std::vector& strSuggestionList) const { if ( (!s_fSpellCheck) || (!m_pHunspell) || (strWord.length() < 3) ) return 0; diff --git a/indra/llui/llhunspell.h b/indra/llui/llhunspell.h index 76331e2955..637cc97e5f 100644 --- a/indra/llui/llhunspell.h +++ b/indra/llui/llhunspell.h @@ -31,15 +31,15 @@ protected: ~LLHunspellWrapper(); public: - bool checkSpelling(const std::string& strWord); - S32 getSuggestions(const std::string& strWord, std::vector& strSuggestionList); + bool checkSpelling(const std::string& strWord) const; + S32 getSuggestions(const std::string& strWord, std::vector& strSuggestionList) const; /* * Dictionary related functions */ const std::string getCurrentDictionary() const { return m_strDictionary; } S32 getDictionaries(std::vector& strDictionaryList) const; - const std::string& getDictionaryPath() { return m_strDictionaryPath; } + const std::string& getDictionaryPath() const { return m_strDictionaryPath; } S32 getInstalledDictionaries(std::vector& strDictionaryList) const; bool setCurrentDictionary(const std::string& strDictionary);