summaryrefslogtreecommitdiff
path: root/idlc
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 /idlc
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>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlcproduce.cxx2
-rw-r--r--idlc/source/options.cxx2
2 files changed, 2 insertions, 2 deletions
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));