diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:04:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:04:12 +0200 |
commit | 7bff36d45d946abe40bb7a642165a54d289e11c1 (patch) | |
tree | baaaf5d94bdda6867f14b0aa4fbea5737583850a /connectivity/source/drivers/firebird/Util.cxx | |
parent | loplugin:stringconstant: OUStringBuffer: appendAscii -> append (diff) | |
download | core-7bff36d45d946abe40bb7a642165a54d289e11c1.tar.gz core-7bff36d45d946abe40bb7a642165a54d289e11c1.zip |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I68b02ad101c4c2165b4618ed5d97cbffc2c43d2d
Diffstat (limited to 'connectivity/source/drivers/firebird/Util.cxx')
-rw-r--r-- | connectivity/source/drivers/firebird/Util.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/firebird/Util.cxx b/connectivity/source/drivers/firebird/Util.cxx index c8f182d37924..bf77aa3f3034 100644 --- a/connectivity/source/drivers/firebird/Util.cxx +++ b/connectivity/source/drivers/firebird/Util.cxx @@ -30,14 +30,14 @@ OUString firebird::StatusVectorToString(const ISC_STATUS_ARRAY& rStatusVector, OUStringBuffer buf; const ISC_STATUS* pStatus = reinterpret_cast<const ISC_STATUS*>(&rStatusVector); - buf.appendAscii("firebird_sdbc error:"); + buf.append("firebird_sdbc error:"); try { char msg[512]; // Size is based on suggestion in docs. while(fb_interpret(msg, sizeof(msg), &pStatus)) { // TODO: verify encoding - buf.appendAscii("\n*"); + buf.append("\n*"); buf.append(OUString(msg, strlen(msg), RTL_TEXTENCODING_UTF8)); } } @@ -45,7 +45,7 @@ OUString firebird::StatusVectorToString(const ISC_STATUS_ARRAY& rStatusVector, { SAL_WARN("connectivity.firebird", "ignore fb_interpret exception"); } - buf.appendAscii("\ncaused by\n'").append(rCause).appendAscii("'\n"); + buf.append("\ncaused by\n'").append(rCause).append("'\n"); OUString error = buf.makeStringAndClear(); SAL_WARN("connectivity.firebird", error); |