summaryrefslogtreecommitdiff
path: root/ucb/source/ucp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:34:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:30 +0200
commit40b16e07c855521302e472eae4974524e39e2d3c (patch)
tree70d9d0d1083be721209c9b2caf1c053daa083261 /ucb/source/ucp
parent877fe59c4e398e6b9b2d4a8ea9904a59203fcd26 (diff)
loplugin:simplifybool
Change-Id: I1890703bf1277ad83f578e1527db81a6e8f49fd3
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx6
-rw-r--r--ucb/source/ucp/webdav-neon/DateTimeHelper.cxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index dc2f9991f16a..59c889a03960 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -850,10 +850,8 @@ Reference< XRow > FTPContent::getPropertyValues(
: OUString(FTP_FILE) );
else if(Name == "IsReadOnly")
xRow->appendBoolean(seqProp[i],
- aDirEntry.m_nMode
- & INETCOREFTP_FILEMODE_WRITE
- ? false
- : true );
+ (aDirEntry.m_nMode
+ & INETCOREFTP_FILEMODE_WRITE) == 0 );
else if(Name == "IsDocument")
xRow->appendBoolean(seqProp[i],
(aDirEntry.m_nMode &
diff --git a/ucb/source/ucp/webdav-neon/DateTimeHelper.cxx b/ucb/source/ucp/webdav-neon/DateTimeHelper.cxx
index af39ae99c3f3..2b240eb2e74d 100644
--- a/ucb/source/ucp/webdav-neon/DateTimeHelper.cxx
+++ b/ucb/source/ucp/webdav-neon/DateTimeHelper.cxx
@@ -232,7 +232,7 @@ bool DateTimeHelper::RFC2068_To_DateTime (const OUString& s,
}
}
- return (found) ? true : false;
+ return found != 0;
}
bool DateTimeHelper::convert (const OUString& s, DateTime& dateTime)