Kaydet (Commit) 20cc8a45 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

loplugin:nullptr

Change-Id: I2cd1e82d86d8776155db2f70bc92c7c448f81ce0
üst c69a8d91
...@@ -40,7 +40,7 @@ serf_bucket_t * SerfUnlockReqProcImpl::createSerfRequestBucket( serf_request_t * ...@@ -40,7 +40,7 @@ serf_bucket_t * SerfUnlockReqProcImpl::createSerfRequestBucket( serf_request_t *
serf_bucket_t *req_bkt = serf_request_bucket_request_create( inSerfRequest, serf_bucket_t *req_bkt = serf_request_bucket_request_create( inSerfRequest,
"UNLOCK", "UNLOCK",
getPathStr(), getPathStr(),
0, nullptr,
serf_request_get_alloc( inSerfRequest ) ); serf_request_get_alloc( inSerfRequest ) );
// set request header fields // set request header fields
serf_bucket_t* hdrs_bkt = serf_bucket_request_get_headers( req_bkt ); serf_bucket_t* hdrs_bkt = serf_bucket_request_get_headers( req_bkt );
......
...@@ -40,12 +40,12 @@ SerfUri::SerfUri( const apr_uri_t * inUri ) ...@@ -40,12 +40,12 @@ SerfUri::SerfUri( const apr_uri_t * inUri )
, mPort() , mPort()
, mPath() , mPath()
{ {
if ( inUri == 0 ) if ( inUri == nullptr )
throw DAVException( DAVException::DAV_INVALID_ARG ); throw DAVException( DAVException::DAV_INVALID_ARG );
char * uri = apr_uri_unparse( apr_environment::AprEnv::getAprEnv()->getAprPool(), &mAprUri, 0 ); char * uri = apr_uri_unparse( apr_environment::AprEnv::getAprEnv()->getAprPool(), &mAprUri, 0 );
if ( uri == 0 ) if ( uri == nullptr )
throw DAVException( DAVException::DAV_INVALID_ARG ); throw DAVException( DAVException::DAV_INVALID_ARG );
init( &mAprUri ); init( &mAprUri );
......
...@@ -352,11 +352,11 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes() ...@@ -352,11 +352,11 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
{ {
} }
cppu::OTypeCollection * pCollection = 0; cppu::OTypeCollection * pCollection = nullptr;
if ( bFolder ) if ( bFolder )
{ {
static cppu::OTypeCollection* pFolderTypes = 0; static cppu::OTypeCollection* pFolderTypes = nullptr;
pCollection = pFolderTypes; pCollection = pFolderTypes;
if ( !pCollection ) if ( !pCollection )
...@@ -389,7 +389,7 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes() ...@@ -389,7 +389,7 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
} }
else else
{ {
static cppu::OTypeCollection* pDocumentTypes = 0; static cppu::OTypeCollection* pDocumentTypes = nullptr;
pCollection = pDocumentTypes; pCollection = pDocumentTypes;
if ( !pCollection ) if ( !pCollection )
...@@ -3365,7 +3365,7 @@ Content::ResourceType Content::getResourceType( ...@@ -3365,7 +3365,7 @@ Content::ResourceType Content::getResourceType(
// resource is NON_DAV // resource is NON_DAV
eResourceType = NON_DAV; eResourceType = NON_DAV;
} }
else if (networkAccessAllowed != 0) else if (networkAccessAllowed != nullptr)
{ {
*networkAccessAllowed = *networkAccessAllowed *networkAccessAllowed = *networkAccessAllowed
&& shouldAccessNetworkAfterException(e); && shouldAccessNetworkAfterException(e);
......
...@@ -120,7 +120,7 @@ private: ...@@ -120,7 +120,7 @@ private:
ResourceType ResourceType
getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, getResourceType( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv,
const std::unique_ptr< DAVResourceAccess > & rResAccess, const std::unique_ptr< DAVResourceAccess > & rResAccess,
bool * networkAccessAllowed = 0 ) bool * networkAccessAllowed = nullptr )
throw ( css::uno::Exception ); throw ( css::uno::Exception );
// Command "open" // Command "open"
......
...@@ -38,7 +38,7 @@ ContentProvider::ContentProvider( ...@@ -38,7 +38,7 @@ ContentProvider::ContentProvider(
const uno::Reference< uno::XComponentContext >& rContext ) const uno::Reference< uno::XComponentContext >& rContext )
: ::ucbhelper::ContentProviderImplHelper( rContext ), : ::ucbhelper::ContentProviderImplHelper( rContext ),
m_xDAVSessionFactory( new DAVSessionFactory() ), m_xDAVSessionFactory( new DAVSessionFactory() ),
m_pProps( 0 ) m_pProps( nullptr )
{ {
} }
......
...@@ -372,7 +372,7 @@ namespace ...@@ -372,7 +372,7 @@ namespace
WebDAVResponseParser::WebDAVResponseParser(WebDAVResponseParserMode eWebDAVResponseParserMode) WebDAVResponseParser::WebDAVResponseParser(WebDAVResponseParserMode eWebDAVResponseParserMode)
: maResult_PropFind(), : maResult_PropFind(),
maResult_PropName(), maResult_PropName(),
mpContext(0), mpContext(nullptr),
maHref(), maHref(),
maStatus(), maStatus(),
maResponseProperties(), maResponseProperties(),
......
...@@ -28,7 +28,7 @@ using namespace com::sun::star; ...@@ -28,7 +28,7 @@ using namespace com::sun::star;
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory( extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ ) const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{ {
void * pRet = 0; void * pRet = nullptr;
uno::Reference< lang::XMultiServiceFactory > xSMgr( uno::Reference< lang::XMultiServiceFactory > xSMgr(
static_cast< lang::XMultiServiceFactory * >( pServiceManager ) ); static_cast< lang::XMultiServiceFactory * >( pServiceManager ) );
......
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