summaryrefslogtreecommitdiff
path: root/include/comphelper/servicedecl.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:11:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:19 +0100
commitfb4ce444c2239aa089b0b3c8f4b7629a624edea2 (patch)
tree518ecd4aeddc5d7b68a8051c66107751b7600451 /include/comphelper/servicedecl.hxx
parent87a9abf351d1547638ec25c72d7fcb27d1b61440 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ibd0e6ae5e3243464b2484a009f2b4781bdaac471
Diffstat (limited to 'include/comphelper/servicedecl.hxx')
-rw-r--r--include/comphelper/servicedecl.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/comphelper/servicedecl.hxx b/include/comphelper/servicedecl.hxx
index cb9a6f304d07..4447364d005a 100644
--- a/include/comphelper/servicedecl.hxx
+++ b/include/comphelper/servicedecl.hxx
@@ -338,7 +338,7 @@ template< typename T >
inline void* component_getFactoryHelper( const sal_Char* pImplName, void* pRet,
const T& s )
{
- if( pRet == 0 )
+ if( pRet == nullptr )
return s.getFactory( pImplName );
return pRet;
}
@@ -347,7 +347,7 @@ template< typename T, typename... Args >
inline void* component_getFactoryHelper( const sal_Char* pImplName, void* pRet,
const T& s, const Args&... args )
{
- if( pRet == 0 )
+ if( pRet == nullptr )
return component_getFactoryHelper( pImplName, s.getFactory( pImplName ), args... );
return pRet;
}
@@ -356,7 +356,7 @@ template< typename... Args >
inline void* component_getFactoryHelper( const sal_Char* pImplName,
const Args&... args )
{
- void* pRet = 0;
+ void* pRet = nullptr;
return component_getFactoryHelper( pImplName, pRet, args... );
}