From 6dddefc6e7ff6dc5cde46dde069ba1d7db4ac34b Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 9 Mar 2013 21:47:17 +0100 Subject: fdo#43460: use isEmpty() Change-Id: Ia768e684d3cf255239c04d024b35488830cc9fe6 --- connectivity/source/drivers/postgresql/pq_preparedstatement.cxx | 2 +- connectivity/source/drivers/postgresql/pq_xtables.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'connectivity/source/drivers/postgresql') diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx index 3cc66654e686..b2aa68313743 100644 --- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx +++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx @@ -697,7 +697,7 @@ void PreparedStatement::setObjectWithInfo( { x >>= myString; } - if( myString.getLength() ) + if( !myString.isEmpty() ) { // printf( "setObjectWithInfo %s\n", OUStringToOString(myString,RTL_TEXTENCODING_ASCII_US).getStr()); setString( parameterIndex, myString ); diff --git a/connectivity/source/drivers/postgresql/pq_xtables.cxx b/connectivity/source/drivers/postgresql/pq_xtables.cxx index 92c0f12f2dfe..844ae3a5dbb0 100644 --- a/connectivity/source/drivers/postgresql/pq_xtables.cxx +++ b/connectivity/source/drivers/postgresql/pq_xtables.cxx @@ -234,7 +234,7 @@ static void appendColumnList( { buf.append( type ); } - if( defaultValue.getLength() ) + if( !defaultValue.isEmpty() ) { bufferQuoteConstant( buf, defaultValue, settings ); } @@ -300,7 +300,7 @@ void Tables::appendByDescriptor( // description .... OUString description = extractStringProperty( descriptor, st.DESCRIPTION ); - if( description.getLength() ) + if( !description.isEmpty() ) { buf = OUStringBuffer( 128 ); buf.append( "COMMENT ON TABLE" ); @@ -322,7 +322,7 @@ void Tables::appendByDescriptor( { Reference< XPropertySet > column( xEnum->nextElement(), UNO_QUERY ); description = extractStringProperty( column,st.DESCRIPTION ); - if( description.getLength() ) + if( !description.isEmpty() ) { buf = OUStringBuffer( 128 ); buf.append( "COMMENT ON COLUMN " ); -- cgit