summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-01 16:21:54 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-01 16:23:08 -0500
commit9ee19c8fad2c3c29c4ff4cc6c37ba8d24d641ccc (patch)
tree45faf7defa86d0636b194213a0df72d7a33d5fa9 /lingucomponent/source/spellcheck
parentbeebf578ed20771495d2eda9e7fb898767f49d7c (diff)
fdo#41474: remove setCharAt and charAt from O[U]StringBuffer
Diffstat (limited to 'lingucomponent/source/spellcheck')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
index 92aecc534346..5baf4d411cea 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
@@ -248,9 +248,9 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale
sal_Int32 n = rBuf.getLength();
sal_Unicode c;
for (sal_Int32 ix=0; ix < n; ix++) {
- c = rBuf.charAt(ix);
- if ((c == 0x201C) || (c == 0x201D)) rBuf.setCharAt(ix,(sal_Unicode)0x0022);
- if ((c == 0x2018) || (c == 0x2019)) rBuf.setCharAt(ix,(sal_Unicode)0x0027);
+ c = rBuf[ix];
+ if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = (sal_Unicode)0x0022;
+ if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = (sal_Unicode)0x0027;
}
OUString nWord(rBuf.makeStringAndClear());
@@ -356,9 +356,9 @@ Reference< XSpellAlternatives >
sal_Int32 n = rBuf.getLength();
sal_Unicode c;
for (sal_Int32 ix=0; ix < n; ix++) {
- c = rBuf.charAt(ix);
- if ((c == 0x201C) || (c == 0x201D)) rBuf.setCharAt(ix,(sal_Unicode)0x0022);
- if ((c == 0x2018) || (c == 0x2019)) rBuf.setCharAt(ix,(sal_Unicode)0x0027);
+ c = rBuf[ix];
+ if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = (sal_Unicode)0x0022;
+ if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = (sal_Unicode)0x0027;
}
OUString nWord(rBuf.makeStringAndClear());