From 9ee19c8fad2c3c29c4ff4cc6c37ba8d24d641ccc Mon Sep 17 00:00:00 2001 From: August Sodora Date: Thu, 1 Dec 2011 16:21:54 -0500 Subject: fdo#41474: remove setCharAt and charAt from O[U]StringBuffer --- connectivity/source/parse/sqlbison.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'connectivity/source/parse/sqlbison.y') 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; } } } -- cgit v1.2.3