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(
: 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 &
......
......@@ -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)
......
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