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/postgresql/pq_statement.cxx | |
parent | b03b8c8c0ccf642efd706267a3d232d2c3de3850 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I68b02ad101c4c2165b4618ed5d97cbffc2c43d2d
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_statement.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_statement.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index 52eb1f29f272..e37e7f9d5dc6 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -246,18 +246,18 @@ void Statement::raiseSQLException( throw( SQLException ) { OUStringBuffer buf(128); - buf.appendAscii( "pq_driver: "); + buf.append( "pq_driver: "); if( errorType ) { - buf.appendAscii( "[" ); + buf.append( "[" ); buf.appendAscii( errorType ); - buf.appendAscii( "]" ); + buf.append( "]" ); } buf.append( OUString( errorMsg, strlen(errorMsg) , m_pSettings->encoding ) ); - buf.appendAscii( " (caused by statement '" ); + buf.append( " (caused by statement '" ); buf.append( sql ); - buf.appendAscii( "')" ); + buf.append( "')" ); OUString error = buf.makeStringAndClear(); log( m_pSettings, LogLevel::ERROR, error ); throw SQLException( error, *this, OUString(), 1, Any() ); @@ -297,18 +297,18 @@ static void raiseSQLException( throw( SQLException ) { OUStringBuffer buf(128); - buf.appendAscii( "pq_driver: "); + buf.append( "pq_driver: "); if( errorType ) { - buf.appendAscii( "[" ); + buf.append( "[" ); buf.appendAscii( errorType ); - buf.appendAscii( "]" ); + buf.append( "]" ); } buf.append( OUString( errorMsg, strlen(errorMsg) , pSettings->encoding ) ); - buf.appendAscii( " (caused by statement '" ); + buf.append( " (caused by statement '" ); buf.append( OStringToOUString( sql, pSettings->encoding ) ); - buf.appendAscii( "')" ); + buf.append( "')" ); OUString error = buf.makeStringAndClear(); log( pSettings, LogLevel::ERROR, error ); throw SQLException( error, owner, OUString(), 1, Any() ); @@ -939,9 +939,9 @@ sal_Bool Statement::convertFastPropertyValue( default: { OUStringBuffer buf(128); - buf.appendAscii( "pq_statement: Invalid property handle (" ); + buf.append( "pq_statement: Invalid property handle (" ); buf.append( nHandle ); - buf.appendAscii( ")" ); + buf.append( ")" ); throw IllegalArgumentException( buf.makeStringAndClear(), *this, 2 ); } } |