summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-17 20:32:03 +0200
committerNoel Power <noel.power@suse.com>2013-06-18 17:31:20 +0000
commitcaab53cf21bc38ead3927941795b3c8a1432589a (patch)
tree088d28387c5eb7be34283502d078e3233dea88b2 /connectivity
parentfdo#43460 sw: use isEmpty() (diff)
downloadcore-caab53cf21bc38ead3927941795b3c8a1432589a.tar.gz
core-caab53cf21bc38ead3927941795b3c8a1432589a.zip
fdo#43460 connectivity,extensions,filter,idl,idlc: use isEmpty()
Change-Id: I78ba286be5aa4d731f734e5eb16adb77c686aad9 Reviewed-on: https://gerrit.libreoffice.org/4325 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/filtermanager.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/commontools/filtermanager.cxx b/connectivity/source/commontools/filtermanager.cxx
index 7719a694fcff..7d074dffd70c 100644
--- a/connectivity/source/commontools/filtermanager.cxx
+++ b/connectivity/source/commontools/filtermanager.cxx
@@ -109,7 +109,7 @@ namespace dbtools
//--------------------------------------------------------------------
void FilterManager::appendFilterComponent( OUStringBuffer& io_appendTo, const OUString& i_component ) const
{
- if ( io_appendTo.getLength() > 0 )
+ if ( !io_appendTo.isEmpty() )
{
io_appendTo.insert( 0, sal_Unicode( '(' ) );
io_appendTo.insert( 1, sal_Unicode( ' ' ) );
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx
index f4125a1f09c2..11e0c300ea30 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.cxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.cxx
@@ -767,7 +767,7 @@ com::sun::star::uno::Sequence< Any > parseArray( const OUString & str ) throw( S
}
if( brackets == 0 )
{
- if( current.getLength() > 0 || doubleQuotedValue )
+ if( !current.isEmpty() || doubleQuotedValue )
elements.push_back( makeAny( current.makeStringAndClear() ) );
}
else