Kaydet (Commit) 40b16e07 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I1890703bf1277ad83f578e1527db81a6e8f49fd3
üst 877fe59c
...@@ -850,10 +850,8 @@ Reference< XRow > FTPContent::getPropertyValues( ...@@ -850,10 +850,8 @@ Reference< XRow > FTPContent::getPropertyValues(
: OUString(FTP_FILE) ); : OUString(FTP_FILE) );
else if(Name == "IsReadOnly") else if(Name == "IsReadOnly")
xRow->appendBoolean(seqProp[i], xRow->appendBoolean(seqProp[i],
aDirEntry.m_nMode (aDirEntry.m_nMode
& INETCOREFTP_FILEMODE_WRITE & INETCOREFTP_FILEMODE_WRITE) == 0 );
? false
: true );
else if(Name == "IsDocument") else if(Name == "IsDocument")
xRow->appendBoolean(seqProp[i], xRow->appendBoolean(seqProp[i],
(aDirEntry.m_nMode & (aDirEntry.m_nMode &
......
...@@ -232,7 +232,7 @@ bool DateTimeHelper::RFC2068_To_DateTime (const OUString& s, ...@@ -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) bool DateTimeHelper::convert (const OUString& s, DateTime& dateTime)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment