locator: make it clear to the linter that we want services to be global

This commit is contained in:
Michele Caini
2024-05-31 11:32:23 +02:00
parent 0405126c25
commit c51c6da61b

View File

@@ -149,6 +149,7 @@ public:
private:
// std::shared_ptr because of its type erased allocator which is useful here
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
inline static std::shared_ptr<Service> service{};
};