summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-09-19 12:05:16 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-09-19 12:12:27 +0200
commit1f291178605aea72a988d19db75500dfd2c23424 (patch)
treea6e270e6c330f9f8ea29af93c5fe24896a6dae57 /connectivity
parentf3615c768c2d93b581eff7532c263a3905bb4785 (diff)
speed optimisation
Change-Id: I8f27adf834e09702c609170e63facb1ec1ea0ab7
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbc/appendsqlwchars.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/drivers/odbc/appendsqlwchars.cxx b/connectivity/source/drivers/odbc/appendsqlwchars.cxx
index c083c6157948..8a62db3305c8 100644
--- a/connectivity/source/drivers/odbc/appendsqlwchars.cxx
+++ b/connectivity/source/drivers/odbc/appendsqlwchars.cxx
@@ -26,9 +26,10 @@ void appendSQLWCHARs(OUStringBuffer & s, const sal_Unicode* d, sal_Int32 n)
BOOST_STATIC_ASSERT(sizeof (wchar_t) == 4);
void appendSQLWCHARs(OUStringBuffer & s, const wchar_t* d, sal_Int32 n)
{
- for (sal_Int32 i = 0; i < n; ++i)
+ const wchar_t * const end = d + n;
+ for (; d < end; ++d)
{
- s.appendUtf32(d[i]);
+ s.appendUtf32(*d);
}
}
#endif