summaryrefslogtreecommitdiff
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
parent5883e1926b80334cfdb7a3dd63d6391b1738c2a6 (diff)
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>
-rw-r--r--connectivity/source/commontools/filtermanager.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.cxx2
-rw-r--r--extensions/source/plugin/unx/unxmgr.cxx2
-rw-r--r--filter/source/graphicfilter/idxf/dxfgrprd.cxx2
-rw-r--r--idl/source/objects/object.cxx2
-rw-r--r--idl/source/objects/slot.cxx2
-rw-r--r--idlc/source/idlcproduce.cxx2
-rw-r--r--idlc/source/options.cxx2
8 files changed, 8 insertions, 8 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
diff --git a/extensions/source/plugin/unx/unxmgr.cxx b/extensions/source/plugin/unx/unxmgr.cxx
index 26a4d10d989e..6da7fe50778b 100644
--- a/extensions/source/plugin/unx/unxmgr.cxx
+++ b/extensions/source/plugin/unx/unxmgr.cxx
@@ -116,7 +116,7 @@ static bool CheckPlugin( const OString& rPath, list< PluginDescription* >& rDesc
}
pclose( pResult );
- if( aMIME.getLength() > 0 )
+ if( !aMIME.isEmpty() )
{
OString aLine = aMIME.makeStringAndClear();
diff --git a/filter/source/graphicfilter/idxf/dxfgrprd.cxx b/filter/source/graphicfilter/idxf/dxfgrprd.cxx
index e6a741d181cd..895f88bd8a0e 100644
--- a/filter/source/graphicfilter/idxf/dxfgrprd.cxx
+++ b/filter/source/graphicfilter/idxf/dxfgrprd.cxx
@@ -68,7 +68,7 @@ OString DXFReadLine(SvStream& rIStm)
}
}
- if( !bEnd && !rIStm.GetError() && aBuf.getLength() )
+ if( !bEnd && !rIStm.GetError() && !aBuf.isEmpty() )
bEnd = sal_True;
nOldFilePos += aBuf.getLength();
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx
index 226788ea803c..b926b26e21e5 100644
--- a/idl/source/objects/object.cxx
+++ b/idl/source/objects/object.cxx
@@ -505,7 +505,7 @@ void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>&
SvClassElement * pEle = aClassList[n];
SvMetaClass * pCl = pEle->GetClass();
OStringBuffer rPre(rPrefix);
- if( rPre.getLength() && pEle->GetPrefix().getLength() )
+ if( !rPre.isEmpty() && !pEle->GetPrefix().isEmpty() )
rPre.append('.');
rPre.append(pEle->GetPrefix());
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 5cb323326260..e77bd54d346b 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -790,7 +790,7 @@ void SvMetaSlot::WriteAttributesSvIdl( SvIdlDataBase & rBase,
aDel = ", ";
}
- if( aOut.getLength() )
+ if( !aOut.isEmpty() )
{
WriteTab( rOutStm, nTab );
rOutStm << aOut.getStr() << endl;
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx
index 93dc8ba7df86..5eaacbe0c6b1 100644
--- a/idlc/source/idlcproduce.cxx
+++ b/idlc/source/idlcproduce.cxx
@@ -67,7 +67,7 @@ static sal_Bool checkOutputPath(const OString& completeName)
{
buffer.append(sysPathName.getToken(0, SEPARATOR, nIndex));
- if ( buffer.getLength() > 0 && nIndex != -1 )
+ if ( !buffer.isEmpty() && nIndex != -1 )
{
#if defined(SAL_UNX)
if (mkdir((char*)buffer.getStr(), 0777) == -1)
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index 375e1454f850..095a97164608 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -222,7 +222,7 @@ bool Options::initOptions(std::vector< std::string > & rArgs) throw(IllegalArgum
sal_Int32 k = 0;
do
{
- if (buffer.getLength() > 0)
+ if (!buffer.isEmpty())
buffer.append(' ');
// buffer.append("-I\"");
buffer.append(param.getToken(0, ';', k));