summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ftp
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-07-31 00:02:18 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-07-31 00:02:18 +0200
commit1f7b66104dcb8ccad3efd2bd116c42e090ee9981 (patch)
treec140867d6872aecea550dbb883362e1408108897 /ucb/source/ucp/ftp
parent386c28330ea590eb42877af1c807973e8fb29be0 (diff)
Some cppcheck cleaning
Diffstat (limited to 'ucb/source/ucp/ftp')
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 7ef4db27dca5..c022e584ac4a 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -420,7 +420,7 @@ namespace ftp {
FILE* FTPURL::open()
throw(curl_exception)
{
- if(!m_aPathSegmentVec.size())
+ if(m_aPathSegmentVec.empty())
throw curl_exception(CURLE_FTP_COULDNT_RETR_FILE);
CURL *curl = m_pFCP->handle();
@@ -597,7 +597,7 @@ rtl::OUString FTPURL::net_title() const
// We were either denied access when trying to login to
// an FTP server or when trying to change working directory
// to the one given in the URL.
- if(m_aPathSegmentVec.size())
+ if(!m_aPathSegmentVec.empty())
// determine title form url
aNetTitle = decodePathSegment(m_aPathSegmentVec.back());
else
@@ -701,7 +701,7 @@ void FTPURL::mkdir(bool ReplaceExisting) const
throw(curl_exception)
{
rtl::OString title;
- if(m_aPathSegmentVec.size()) {
+ if(!m_aPathSegmentVec.empty()) {
rtl::OUString titleOU = m_aPathSegmentVec.back();
titleOU = decodePathSegment(titleOU);
title = rtl::OString(titleOU.getStr(),