summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:27:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:27:16 +0200
commit1fb55375be652237d82069b71c2cdb5ac4788181 (patch)
treedd11d51010e6e36afeaaf2f088ec5d9eb4ee09e4 /lingucomponent
parent863bfb2811cb1717743bac5ab1f3583acf88d2db (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I0730744b8424bc6dea5e8016199088f86e9570f5
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/languageguessing/guesslang.cxx2
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx
index cde93636194f..9c848cd6ec93 100644
--- a/lingucomponent/source/languageguessing/guesslang.cxx
+++ b/lingucomponent/source/languageguessing/guesslang.cxx
@@ -201,7 +201,7 @@ void LangGuess_Impl::SetFingerPrintsDB(
OString conf_file_path(path);
conf_file_path += conf_file_name;
- m_aGuesser.SetDBPath((const char*)conf_file_path.getStr(), (const char*)path.getStr());
+ m_aGuesser.SetDBPath(conf_file_path.getStr(), path.getStr());
}
uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getAvailableLanguages( )
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 706f8b76e0f5..a27c9e06a4ef 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -454,7 +454,7 @@ Reference< XSpellAlternatives >
{
char ** suglst = NULL;
OString aWrd(OU2ENC(nWord,eEnc));
- int count = pMS->suggest(&suglst, (const char *) aWrd.getStr());
+ int count = pMS->suggest(&suglst, aWrd.getStr());
if (count)
{