Pārlūkot izejas kodu

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

Michele Caini 2 gadi atpakaļ
vecāks
revīzija
c51c6da61b
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/entt/locator/locator.hpp

+ 1 - 0
src/entt/locator/locator.hpp

@@ -149,6 +149,7 @@ public:
 
 
 private:
 private:
     // std::shared_ptr because of its type erased allocator which is useful here
     // 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{};
     inline static std::shared_ptr<Service> service{};
 };
 };