Kaydet (Commit) 3205a2eb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

const_cast: convert some C-style casts and remove some redundant ones

Change-Id: Id916058c4a1483a7a050d93cce45926fbd0df9ed
üst be1e2727
...@@ -333,7 +333,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL ...@@ -333,7 +333,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL
return -1; return -1;
OString aWrd(OU2ENC(nWord,eEnc)); OString aWrd(OU2ENC(nWord,eEnc));
int rVal = pMS->spell((char*)aWrd.getStr()); int rVal = pMS->spell(aWrd.getStr());
if (rVal != 1) { if (rVal != 1) {
if (extrachar && (eEnc != RTL_TEXTENCODING_UTF8)) { if (extrachar && (eEnc != RTL_TEXTENCODING_UTF8)) {
OUStringBuffer mBuf(nWord); OUStringBuffer mBuf(nWord);
...@@ -352,7 +352,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL ...@@ -352,7 +352,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL
} }
OUString mWord(mBuf.makeStringAndClear()); OUString mWord(mBuf.makeStringAndClear());
OString bWrd(OU2ENC(mWord, eEnc)); OString bWrd(OU2ENC(mWord, eEnc));
rVal = pMS->spell((char*)bWrd.getStr()); rVal = pMS->spell(bWrd.getStr());
if (rVal == 1) return -1; if (rVal == 1) return -1;
} }
nRes = SpellFailure::SPELLING_ERROR; nRes = SpellFailure::SPELLING_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment