loplugin:simplifybool
Change-Id: I1890703bf1277ad83f578e1527db81a6e8f49fd3
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user