diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:12:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:20 +0100 |
commit | 311fd06af4e297fa748684a61edd3ee38845c485 (patch) | |
tree | 6d161a26bd958bf86971d322a7c70d8e9b5e5fdb /cppcanvas/source/tools | |
parent | c0bd59c15b4a6e8523693c8a354456b9fadb8832 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I68f6c78d1a539a960efbcf81be1e5b2bd26c2bc5
Diffstat (limited to 'cppcanvas/source/tools')
-rw-r--r-- | cppcanvas/source/tools/canvasgraphichelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx index e766cc451d65..795d4a2056a4 100644 --- a/cppcanvas/source/tools/canvasgraphichelper.cxx +++ b/cppcanvas/source/tools/canvasgraphichelper.cxx @@ -46,11 +46,11 @@ namespace cppcanvas mpCanvas( rParentCanvas ), mxGraphicDevice() { - OSL_ENSURE( mpCanvas.get() != NULL && + OSL_ENSURE( mpCanvas.get() != nullptr && mpCanvas->getUNOCanvas().is(), "CanvasGraphicHelper::CanvasGraphicHelper: no valid canvas" ); - if( mpCanvas.get() != NULL && + if( mpCanvas.get() != nullptr && mpCanvas->getUNOCanvas().is() ) { mxGraphicDevice = mpCanvas->getUNOCanvas()->getDevice(); |