From a9ac78b47dd040e04afc4990dace2472df2302e4 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 13 Feb 2024 15:41:34 +0100 Subject: HCR-15: fix GApplication class, add static on Shared() function. Signed-off-by: Amlal El Mahrouss --- Public/Kits/GKit/Core.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Public') diff --git a/Public/Kits/GKit/Core.hpp b/Public/Kits/GKit/Core.hpp index 00ae524e..39eb341b 100644 --- a/Public/Kits/GKit/Core.hpp +++ b/Public/Kits/GKit/Core.hpp @@ -132,12 +132,12 @@ class G_API GApplication final { GDocument* Document() noexcept { return nullptr; } - GApplication* Shared() noexcept { - STATIC GApplication* gApp = nullptr; + static GApplication* Shared() noexcept { + STATIC GApplication* kApp = nullptr; - if (!gApp) gApp = new GApplication(); + if (!kApp) kApp = new GApplication(); - return gApp; + return kApp; } }; -- cgit v1.2.3