Преглед изворни кода

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

Michele Caini пре 1 година
родитељ
комит
c51c6da61b
1 измењених фајлова са 1 додато и 0 уклоњено
  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{};
 };
 };