diff options
author | August Sodora <augsod@gmail.com> | 2011-12-01 16:21:54 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-01 16:23:08 -0500 |
commit | 9ee19c8fad2c3c29c4ff4cc6c37ba8d24d641ccc (patch) | |
tree | 45faf7defa86d0636b194213a0df72d7a33d5fa9 /connectivity/source/parse | |
parent | beebf578ed20771495d2eda9e7fb898767f49d7c (diff) |
fdo#41474: remove setCharAt and charAt from O[U]StringBuffer
Diffstat (limited to 'connectivity/source/parse')
-rwxr-xr-x | connectivity/source/parse/sqlbison.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index 062b46cdd022..19bb494abf47 100755 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -4529,15 +4529,15 @@ const double fMilliSecondsPerDay = 86400000.0; for (sal_Int32 i = 0; i < nLen; i++) { - const sal_Unicode c = aMatchStr.charAt(i); - if (c == sSearch.charAt(0) || c == sSearch.charAt(1)) + const sal_Unicode c = aMatchStr[i]; + if (c == sSearch[0] || c == sSearch[1]) { - if (i > 0 && aMatchStr.charAt(i-1) == cEscape) + if (i > 0 && aMatchStr[i - 1] == cEscape) continue; else { - const sal_Unicode cCharacter = sReplace.charAt( (c == sSearch.charAt(0)) ? 0 : 1); - aMatchStr.setCharAt(i , cCharacter); + const sal_Unicode cCharacter = sReplace[(c == sSearch[0] ? 0 : 1)]; + aMatchStr[i] = cCharacter; } } } |