summaryrefslogtreecommitdiff
path: root/embedserv/source/inprocserv/smartpointer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'embedserv/source/inprocserv/smartpointer.hxx')
-rw-r--r--embedserv/source/inprocserv/smartpointer.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/embedserv/source/inprocserv/smartpointer.hxx b/embedserv/source/inprocserv/smartpointer.hxx
index dab46ada769a..2cd19610762c 100644
--- a/embedserv/source/inprocserv/smartpointer.hxx
+++ b/embedserv/source/inprocserv/smartpointer.hxx
@@ -33,27 +33,27 @@ template< class T > class ComSmart
if ( m_pInterface )
{
T* pInterface = m_pInterface;
- m_pInterface = NULL;
+ m_pInterface = nullptr;
pInterface->Release();
}
}
public:
ComSmart()
- : m_pInterface( NULL )
+ : m_pInterface( nullptr )
{}
ComSmart( const ComSmart<T>& rObj )
: m_pInterface( rObj.m_pInterface )
{
- if ( m_pInterface != NULL )
+ if ( m_pInterface != nullptr )
m_pInterface->AddRef();
}
explicit ComSmart( T* pInterface )
: m_pInterface( pInterface )
{
- if ( m_pInterface != NULL )
+ if ( m_pInterface != nullptr )
m_pInterface->AddRef();
}
@@ -68,7 +68,7 @@ public:
m_pInterface = rObj.m_pInterface;
- if ( m_pInterface != NULL )
+ if ( m_pInterface != nullptr )
m_pInterface->AddRef();
return *this;
@@ -80,7 +80,7 @@ public:
m_pInterface = pInterface;
- if ( m_pInterface != NULL )
+ if ( m_pInterface != nullptr )
m_pInterface->AddRef();
return *this;
@@ -100,7 +100,7 @@ public:
{
OwnRelease();
- m_pInterface = NULL;
+ m_pInterface = nullptr;
return &m_pInterface;
}