From 40b16e07c855521302e472eae4974524e39e2d3c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 24 Apr 2015 12:34:42 +0200 Subject: loplugin:simplifybool Change-Id: I1890703bf1277ad83f578e1527db81a6e8f49fd3 --- ucb/source/ucp/ftp/ftpcontent.cxx | 6 ++---- ucb/source/ucp/webdav-neon/DateTimeHelper.cxx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'ucb/source/ucp') 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) -- cgit v1.2.3