summaryrefslogtreecommitdiff
path: root/lingucomponent
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
parent8039cd4d7db58921f7d35eeea93cd7f85a5e0815 (diff)
Remove some uses of OUString::setCharAt
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx12
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx12
2 files changed, 12 insertions, 12 deletions
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
index 62b192ffc732..65bb5daa4be6 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
@@ -358,11 +358,11 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const ::rtl::OUStri
sal_Unicode ch;
for (sal_Int32 ix=0; ix < nc; ix++)
{
- ch = rBuf.charAt(ix);
+ ch = rBuf[ix];
if ((ch == 0x201C) || (ch == 0x201D))
- rBuf.setCharAt(ix,(sal_Unicode)0x0022);
+ rBuf[ix] = (sal_Unicode)0x0022;
if ((ch == 0x2018) || (ch == 0x2019))
- rBuf.setCharAt(ix,(sal_Unicode)0x0027);
+ rBuf[ix] = (sal_Unicode)0x0027;
}
OUString nWord(rBuf.makeStringAndClear());
@@ -617,11 +617,11 @@ Reference< XPossibleHyphens > SAL_CALL Hyphenator::createPossibleHyphens( const
sal_Unicode ch;
for (sal_Int32 ix=0; ix < nc; ix++)
{
- ch = rBuf.charAt(ix);
+ ch = rBuf[ix];
if ((ch == 0x201C) || (ch == 0x201D))
- rBuf.setCharAt(ix,(sal_Unicode)0x0022);
+ rBuf[ix] = (sal_Unicode)0x0022;
if ((ch == 0x2018) || (ch == 0x2019))
- rBuf.setCharAt(ix,(sal_Unicode)0x0027);
+ rBuf[ix] = (sal_Unicode)0x0027;
}
OUString nWord(rBuf.makeStringAndClear());
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());