diff options
Diffstat (limited to 'canvas/source/directx/dx_winstuff.hxx')
-rw-r--r-- | canvas/source/directx/dx_winstuff.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/canvas/source/directx/dx_winstuff.hxx b/canvas/source/directx/dx_winstuff.hxx index 88929f41f53b..cb1840d4d42b 100644 --- a/canvas/source/directx/dx_winstuff.hxx +++ b/canvas/source/directx/dx_winstuff.hxx @@ -83,7 +83,7 @@ namespace dxcanvas typedef T Wrappee; COMReference() : - mp( NULL ) + mp( nullptr ) { } @@ -109,9 +109,9 @@ namespace dxcanvas } COMReference( const COMReference& rNew ) : - mp( NULL ) + mp( nullptr ) { - if( rNew.mp == NULL ) + if( rNew.mp == nullptr ) return; rNew.mp->AddRef(); // do that _before_ assigning the @@ -138,11 +138,11 @@ namespace dxcanvas if( mp ) refcount = mp->Release(); - mp = NULL; + mp = nullptr; return refcount; } - bool is() const { return mp != NULL; } + bool is() const { return mp != nullptr; } T* get() const { return mp; } T* operator->() const { return mp; } T& operator*() const { return *mp; } |