diff options
author | August Sodora <augsod@gmail.com> | 2011-11-26 00:48:17 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-11-26 00:49:26 -0500 |
commit | 93253ee6ab355a0590e9632e2ce2f024af15c535 (patch) | |
tree | b2fe179dca06062786ce4d243f9e7bceab3f0c00 /lingucomponent/source/hyphenator | |
parent | 8039cd4d7db58921f7d35eeea93cd7f85a5e0815 (diff) |
Remove some uses of OUString::setCharAt
Diffstat (limited to 'lingucomponent/source/hyphenator')
-rw-r--r-- | lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx | 12 |
1 files changed, 6 insertions, 6 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()); |