From aeb0292a3e645bfeb742d187b384937a431b0a5b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 9 Jan 2022 23:41:56 +0100 Subject: [PATCH] Changed a variable to inline static in BadgeComponent. --- es-core/src/components/BadgeComponent.cpp | 2 -- es-core/src/components/BadgeComponent.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/es-core/src/components/BadgeComponent.cpp b/es-core/src/components/BadgeComponent.cpp index 182e156e1..91acf5ab0 100644 --- a/es-core/src/components/BadgeComponent.cpp +++ b/es-core/src/components/BadgeComponent.cpp @@ -20,8 +20,6 @@ #include "ThemeData.h" #include "utils/StringUtil.h" -std::vector BadgeComponent::sGameControllers; - namespace { // clang-format off diff --git a/es-core/src/components/BadgeComponent.h b/es-core/src/components/BadgeComponent.h index a1d37ba6b..cb7981bb9 100644 --- a/es-core/src/components/BadgeComponent.h +++ b/es-core/src/components/BadgeComponent.h @@ -51,7 +51,7 @@ public: unsigned int properties) override; private: - static std::vector sGameControllers; + inline static std::vector sGameControllers; std::vector mFlexboxItems; FlexboxComponent mFlexboxComponent;