diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-27 09:04:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-27 09:24:07 +0200 |
commit | 53b496daa8be70e29c71ed44b30c49a52677c14c (patch) | |
tree | 79d89ae128ccb4e7c518dd56f332e320d1cda9cf /ucb | |
parent | 3e4c5a3538843bbab5d94e431f9cdb6e394c17c5 (diff) |
loplugin:simplifybool
Change-Id: Id57ee3c09b11c3ce4820ed06a15f13866a10f19a
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/DateTimeHelper.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfSession.cxx | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/ucb/source/ucp/webdav/DateTimeHelper.cxx b/ucb/source/ucp/webdav/DateTimeHelper.cxx index b2e39be6218f..7f2a06afe912 100644 --- a/ucb/source/ucp/webdav/DateTimeHelper.cxx +++ b/ucb/source/ucp/webdav/DateTimeHelper.cxx @@ -242,7 +242,7 @@ bool DateTimeHelper::RFC2068_To_DateTime (const OUString& s, } } - return (found) ? true : false; + return found; } bool DateTimeHelper::convert (const OUString& s, DateTime& dateTime) diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index 1aa895229e23..c3d890f3a467 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -328,7 +328,7 @@ apr_status_t SerfSession::provideSerfCredentials( bool bGiveProvidedCredentialsA theUserName, thePassWord, bCanUseSystemCreds, - bGiveProvidedCredentialsASecondTry ? sal_False : sal_True ); + bGiveProvidedCredentialsASecondTry ); if ( theRetVal == 0 ) { @@ -923,9 +923,7 @@ void SerfSession::COPY( const OUString & inSourceURL, SerfUri theSourceUri( inSourceURL ); boost::shared_ptr<SerfRequestProcessor> aReqProc( createReqProc( theSourceUri.GetPath() ) ); apr_status_t status = APR_SUCCESS; - aReqProc->processCopy( inDestinationURL, - (inOverWrite ? true : false), - status ); + aReqProc->processCopy( inDestinationURL, inOverWrite, status ); HandleError( aReqProc ); } @@ -946,9 +944,7 @@ void SerfSession::MOVE( const OUString & inSourceURL, SerfUri theSourceUri( inSourceURL ); boost::shared_ptr<SerfRequestProcessor> aReqProc( createReqProc( theSourceUri.GetPath() ) ); apr_status_t status = APR_SUCCESS; - aReqProc->processMove( inDestinationURL, - (inOverWrite ? true : false), - status ); + aReqProc->processMove( inDestinationURL, inOverWrite, status ); HandleError( aReqProc ); } |