summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-11-26 00:48:17 -0500
committerAugust Sodora <augsod@gmail.com>2011-11-26 00:49:26 -0500
commit93253ee6ab355a0590e9632e2ce2f024af15c535 (patch)
treeb2fe179dca06062786ce4d243f9e7bceab3f0c00 /lingucomponent/source/spellcheck
parent8039cd4d7db58921f7d35eeea93cd7f85a5e0815 (diff)
Remove some uses of OUString::setCharAt
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());