diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-12-08 01:14:10 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-12-08 10:29:14 +0200 |
commit | 54a7c24e03e8368e9054ffae3b7d9cc4c0d26185 (patch) | |
tree | 31b10c34d6a4c090dfa64904263f1a4cc661be01 /ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx | |
parent | add4bc96366fc2e1301671bd28f60ed3d032c43f (diff) |
loplugin:nullptr
Change-Id: Id8fd27ed20bc67a49d6863b63b07cf1573733744
Diffstat (limited to 'ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx')
-rw-r--r-- | ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx index 8117b1b81221..bcca8dd0d14c 100644 --- a/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx +++ b/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx @@ -36,10 +36,10 @@ SerfPropFindReqProcImpl::SerfPropFindReqProcImpl( const char* inPath, const std::vector< OUString > & inPropNames, std::vector< DAVResource > & ioResources ) : SerfRequestProcessorImpl( inPath, inRequestHeaders ) - , mDepthStr( 0 ) + , mDepthStr( nullptr ) , mpPropNames( &inPropNames ) , mpResources( &ioResources ) - , mpResInfo( 0 ) + , mpResInfo( nullptr ) , mbOnlyPropertyNames( false ) , xInputStream( new SerfInputStream() ) { @@ -51,9 +51,9 @@ SerfPropFindReqProcImpl::SerfPropFindReqProcImpl( const char* inPath, const Depth inDepth, std::vector< DAVResourceInfo > & ioResInfo ) : SerfRequestProcessorImpl( inPath, inRequestHeaders ) - , mDepthStr( 0 ) - , mpPropNames( 0 ) - , mpResources( 0 ) + , mDepthStr( nullptr ) + , mpPropNames( nullptr ) + , mpResources( nullptr ) , mpResInfo( &ioResInfo ) , mbOnlyPropertyNames( true ) , xInputStream( new SerfInputStream() ) @@ -89,7 +89,7 @@ serf_bucket_t * SerfPropFindReqProcImpl::createSerfRequestBucket( serf_request_t serf_bucket_alloc_t* pSerfBucketAlloc = serf_request_get_alloc( inSerfRequest ); // body bucket - certain properties OR all properties OR only property names - serf_bucket_t* body_bkt = 0; + serf_bucket_t* body_bkt = nullptr; OString aBodyText; { OStringBuffer aBuffer; @@ -148,14 +148,14 @@ serf_bucket_t * SerfPropFindReqProcImpl::createSerfRequestBucket( serf_request_t // set request header fields serf_bucket_t* hdrs_bkt = serf_bucket_request_get_headers( req_bkt ); - if (hdrs_bkt != NULL) + if (hdrs_bkt != nullptr) { // general header fields provided by caller setRequestHeaders( hdrs_bkt ); // request specific header fields serf_bucket_headers_set( hdrs_bkt, "Depth", mDepthStr ); - if (hdrs_bkt!=NULL && body_bkt != 0 && aBodyText.getLength() > 0 ) + if (hdrs_bkt!=nullptr && body_bkt != nullptr && aBodyText.getLength() > 0 ) { serf_bucket_headers_set( hdrs_bkt, "Content-Type", "application/xml" ); } |