loplugin:simplifybool

Change-Id: I1890703bf1277ad83f578e1527db81a6e8f49fd3
This commit is contained in:
Stephan Bergmann
2015-04-24 12:34:42 +02:00
parent 877fe59c4e
commit 40b16e07c8
2 changed files with 3 additions and 5 deletions

View File

@@ -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 &

View File

@@ -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)