summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source/spellcheck')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 4426a88ac553..3fd8308ac5f7 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -292,11 +292,11 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL
sal_Unicode c;
for (sal_Int32 ix=0; ix < n; ix++)
{
- c = rBuf.charAt(ix);
+ c = rBuf[ix];
if ((c == 0x201C) || (c == 0x201D))
- rBuf.setCharAt(ix,(sal_Unicode)0x0022);
+ rBuf[ix] = (sal_Unicode)0x0022;
if ((c == 0x2018) || (c == 0x2019))
- rBuf.setCharAt(ix,(sal_Unicode)0x0027);
+ rBuf[ix] = (sal_Unicode)0x0027;
}
OUString nWord(rBuf.makeStringAndClear());
@@ -428,11 +428,11 @@ Reference< XSpellAlternatives >
sal_Unicode c;
for (sal_Int32 ix=0; ix < n; ix++)
{
- c = rBuf.charAt(ix);
+ c = rBuf[ix];
if ((c == 0x201C) || (c == 0x201D))
- rBuf.setCharAt(ix,(sal_Unicode)0x0022);
+ rBuf[ix] = (sal_Unicode)0x0022;
if ((c == 0x2018) || (c == 0x2019))
- rBuf.setCharAt(ix,(sal_Unicode)0x0027);
+ rBuf[ix] = (sal_Unicode)0x0027;
}
OUString nWord(rBuf.makeStringAndClear());