summaryrefslogtreecommitdiff
path: root/cppcanvas/source/tools/canvasgraphichelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas/source/tools/canvasgraphichelper.cxx')
-rw-r--r--cppcanvas/source/tools/canvasgraphichelper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx
index 2ccc1f0cbae5..f7a91d38d361 100644
--- a/cppcanvas/source/tools/canvasgraphichelper.cxx
+++ b/cppcanvas/source/tools/canvasgraphichelper.cxx
@@ -37,8 +37,7 @@ namespace cppcanvas::internal
maClipPolyPolygon(),
mpCanvas( rParentCanvas )
{
- OSL_ENSURE( mpCanvas.get() != nullptr &&
- mpCanvas->getUNOCanvas().is(),
+ OSL_ENSURE( mpCanvas && mpCanvas->getUNOCanvas().is(),
"CanvasGraphicHelper::CanvasGraphicHelper: no valid canvas" );
::canvas::tools::initRenderState( maRenderState );