chore: ensure statics are only present once in the final app (#5588)

This commit is contained in:
nerix
2024-09-14 14:13:12 +02:00
committed by GitHub
parent 2d8937f43e
commit 3d06f8612f
14 changed files with 177 additions and 164 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ public:
const QString &emoteID) const;
};
static const std::shared_ptr<const EmoteMap> EMPTY_EMOTE_MAP = std::make_shared<
inline const std::shared_ptr<const EmoteMap> EMPTY_EMOTE_MAP = std::make_shared<
const EmoteMap>(); // NOLINT(cert-err58-cpp) -- assume this doesn't throw an exception
EmotePtr cachedOrMakeEmotePtr(Emote &&emote, const EmoteMap &cache);