From f06fee17cc694bc5947f041f8f0e800558d53d9c Mon Sep 17 00:00:00 2001 From: Kieran Kihn <114803508+kierankihn@users.noreply.github.com> Date: Sun, 16 Nov 2025 20:50:42 +0800 Subject: [PATCH] fix(common): add defination of `COMMON::Utils::instance_` --- src/common/Utils.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/Utils.cpp b/src/common/Utils.cpp index 05d00f2..d9d08c2 100644 --- a/src/common/Utils.cpp +++ b/src/common/Utils.cpp @@ -12,11 +12,13 @@ namespace UNO::COMMON { return gen_; } + Utils* Utils::instance_ = nullptr; + Utils *Utils::getInstance() { - if (Utils::instance_ == nullptr) { - Utils::instance_ = new Utils(); + if (instance_ == nullptr) { + instance_ = new Utils(); } - return Utils::instance_; + return instance_; } Random &Utils::getRandom() { return this->random_;