diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-13 15:41:34 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-13 15:41:34 +0100 |
| commit | a9ac78b47dd040e04afc4990dace2472df2302e4 (patch) | |
| tree | 42ec5a5719ec3a307218b6ef0b13d99e448d914e /Public | |
| parent | a4af4dc720a0ba8d4c3a23e05825989329a48a2f (diff) | |
HCR-15: fix GApplication class, add static on Shared() function.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Public')
| -rw-r--r-- | Public/Kits/GKit/Core.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } }; |
