From 1fb55375be652237d82069b71c2cdb5ac4788181 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Jun 2015 11:27:16 +0200 Subject: loplugin:cstylecast: deal with those that are (technically) const_cast Change-Id: I0730744b8424bc6dea5e8016199088f86e9570f5 --- lingucomponent/source/languageguessing/guesslang.cxx | 2 +- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lingucomponent') 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) { -- cgit