diff options
-rw-r--r-- | ucb/source/ucp/ftp/ftpcontent.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DateTimeHelper.cxx | 2 |
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) |