summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:29:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:32 +0100
commit3205a2ebb64be4be4154d6d613dbfbf6739eb324 (patch)
tree0e5b609e8934504616a2657356703864638082e3 /lingucomponent
parentbe1e27271aad048414a530368fd0d534bca4c5e3 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Id916058c4a1483a7a050d93cce45926fbd0df9ed
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 078f9da2bd09..706f8b76e0f5 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -333,7 +333,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL
return -1;
OString aWrd(OU2ENC(nWord,eEnc));
- int rVal = pMS->spell((char*)aWrd.getStr());
+ int rVal = pMS->spell(aWrd.getStr());
if (rVal != 1) {
if (extrachar && (eEnc != RTL_TEXTENCODING_UTF8)) {
OUStringBuffer mBuf(nWord);
@@ -352,7 +352,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL
}
OUString mWord(mBuf.makeStringAndClear());
OString bWrd(OU2ENC(mWord, eEnc));
- rVal = pMS->spell((char*)bWrd.getStr());
+ rVal = pMS->spell(bWrd.getStr());
if (rVal == 1) return -1;
}
nRes = SpellFailure::SPELLING_ERROR;