summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-22 12:52:31 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-24 21:44:24 +0000
commit51daa4de4fbb86903aeb9cdfefbb089e8d00c001 (patch)
tree760a9c2cf7a84714e76cfc759cafa72cbdcc07d1 /ucb
parent7b692924a83937b8fab3215fcca154d1abd4a6c8 (diff)
fdo#43460 sd,rsc,ucb,sdext: use isEmpty()
Change-Id: I7a7a77c26b74078f7fc160fbaa1c8d4e912b844e Reviewed-on: https://gerrit.libreoffice.org/4442 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 6da2bf455067..bf2c5231dba5 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -278,7 +278,7 @@ OUString FTPURL::ident(bool withslash,bool internal) const
else
bff.append(sal_Unicode('/')).append(m_aPathSegmentVec[i]);
if(withslash)
- if(bff.getLength() && bff[bff.getLength()-1] != sal_Unicode('/'))
+ if(!bff.isEmpty() && bff[bff.getLength()-1] != sal_Unicode('/'))
bff.append(sal_Unicode('/'));
bff.append(m_aType);