From 2e927c111466cbfbd3f468266f89aaba394b260f Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 13 Nov 2024 10:53:27 +0100 Subject: [PATCH] Canvas: fix review findins --- src/Engine/App/Component.cpp | 2 +- src/Engine/App/Component.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Engine/App/Component.cpp b/src/Engine/App/Component.cpp index 3a1ca0a31..98e6b0c2f 100644 --- a/src/Engine/App/Component.cpp +++ b/src/Engine/App/Component.cpp @@ -97,7 +97,7 @@ bool RenderComponent::onRender(RenderBackendService *renderBackendSrv) { return true; } -LightComponent::LightComponent(Entity *owner) : Component(owner, ComponentType::LightComponentType), mLight(nullptr) { +LightComponent::LightComponent(Entity *owner) : Component(owner, ComponentType::LightComponentType) { // empty } diff --git a/src/Engine/App/Component.h b/src/Engine/App/Component.h index 42751ab39..24e9921ab 100644 --- a/src/Engine/App/Component.h +++ b/src/Engine/App/Component.h @@ -185,7 +185,7 @@ class LightComponent final : public Component { bool onRender(RenderBackend::RenderBackendService *rbSrv) override; private: - RenderBackend::Light *mLight; + RenderBackend::Light *mLight = nullptr; }; } // namespace App