diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 10:27:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 13:25:04 +0200 |
commit | ead19f4c62c8d74292a7ba589df2ca118cea3240 (patch) | |
tree | 69fa5d9bf938e7e1532b75183730c7800cf793ae /drawinglayer/source/processor3d | |
parent | 1d95bd8e5fcdcc241f4c945a4f01486df8e61f88 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: Ic2231df89b900c17beac4627e3573b45aef0bc26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166954
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'drawinglayer/source/processor3d')
-rw-r--r-- | drawinglayer/source/processor3d/zbufferprocessor3d.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |