From ead19f4c62c8d74292a7ba589df2ca118cea3240 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 1 May 2024 10:27:25 +0100 Subject: WaE: C6011 Dereferencing NULL pointer warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic2231df89b900c17beac4627e3573b45aef0bc26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166954 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- drawinglayer/source/processor3d/zbufferprocessor3d.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drawinglayer/source/processor3d') diff --git a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx index b9cb8ffb7a1d..7f8f24f3b872 100644 --- a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx +++ b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx @@ -103,7 +103,7 @@ private: double decideColorAndOpacity(basegfx::BColor& rColor) const { // init values with full opacity and material color - OSL_ENSURE(nullptr != mpCurrentMaterial, "CurrentMaterial not set (!)"); + assert(nullptr != mpCurrentMaterial && "CurrentMaterial not set (!)"); double fOpacity(1.0); rColor = mpCurrentMaterial->getColor(); -- cgit