diff options
Diffstat (limited to 'cppcanvas/source/wrapper/implpolypolygon.cxx')
-rw-r--r-- | cppcanvas/source/wrapper/implpolypolygon.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/wrapper/implpolypolygon.cxx b/cppcanvas/source/wrapper/implpolypolygon.cxx index ed0c4dbd5a89..ddd3be37fddc 100644 --- a/cppcanvas/source/wrapper/implpolypolygon.cxx +++ b/cppcanvas/source/wrapper/implpolypolygon.cxx @@ -96,11 +96,11 @@ namespace cppcanvas { CanvasSharedPtr pCanvas( getCanvas() ); - OSL_ENSURE( pCanvas.get() != NULL && + OSL_ENSURE( pCanvas.get() != nullptr && pCanvas->getUNOCanvas().is(), "ImplBitmap::draw: invalid canvas" ); - if( pCanvas.get() == NULL || + if( pCanvas.get() == nullptr || !pCanvas->getUNOCanvas().is() ) return false; |