Kaydet (Commit) 53b496da authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:simplifybool

Change-Id: Id57ee3c09b11c3ce4820ed06a15f13866a10f19a
üst 3e4c5a35
...@@ -242,7 +242,7 @@ bool DateTimeHelper::RFC2068_To_DateTime (const OUString& s, ...@@ -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) bool DateTimeHelper::convert (const OUString& s, DateTime& dateTime)
......
...@@ -328,7 +328,7 @@ apr_status_t SerfSession::provideSerfCredentials( bool bGiveProvidedCredentialsA ...@@ -328,7 +328,7 @@ apr_status_t SerfSession::provideSerfCredentials( bool bGiveProvidedCredentialsA
theUserName, theUserName,
thePassWord, thePassWord,
bCanUseSystemCreds, bCanUseSystemCreds,
bGiveProvidedCredentialsASecondTry ? sal_False : sal_True ); bGiveProvidedCredentialsASecondTry );
if ( theRetVal == 0 ) if ( theRetVal == 0 )
{ {
...@@ -923,9 +923,7 @@ void SerfSession::COPY( const OUString & inSourceURL, ...@@ -923,9 +923,7 @@ void SerfSession::COPY( const OUString & inSourceURL,
SerfUri theSourceUri( inSourceURL ); SerfUri theSourceUri( inSourceURL );
boost::shared_ptr<SerfRequestProcessor> aReqProc( createReqProc( theSourceUri.GetPath() ) ); boost::shared_ptr<SerfRequestProcessor> aReqProc( createReqProc( theSourceUri.GetPath() ) );
apr_status_t status = APR_SUCCESS; apr_status_t status = APR_SUCCESS;
aReqProc->processCopy( inDestinationURL, aReqProc->processCopy( inDestinationURL, inOverWrite, status );
(inOverWrite ? true : false),
status );
HandleError( aReqProc ); HandleError( aReqProc );
} }
...@@ -946,9 +944,7 @@ void SerfSession::MOVE( const OUString & inSourceURL, ...@@ -946,9 +944,7 @@ void SerfSession::MOVE( const OUString & inSourceURL,
SerfUri theSourceUri( inSourceURL ); SerfUri theSourceUri( inSourceURL );
boost::shared_ptr<SerfRequestProcessor> aReqProc( createReqProc( theSourceUri.GetPath() ) ); boost::shared_ptr<SerfRequestProcessor> aReqProc( createReqProc( theSourceUri.GetPath() ) );
apr_status_t status = APR_SUCCESS; apr_status_t status = APR_SUCCESS;
aReqProc->processMove( inDestinationURL, aReqProc->processMove( inDestinationURL, inOverWrite, status );
(inOverWrite ? true : false),
status );
HandleError( aReqProc ); HandleError( aReqProc );
} }
......
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