Просмотр исходного кода

locator: avoid shadow warnings

Michele Caini 3 лет назад
Родитель
Сommit
02d8cefcde
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/entt/locator/locator.hpp

+ 3 - 3
src/entt/locator/locator.hpp

@@ -117,10 +117,10 @@ public:
 
     /**
      * @brief Resets or replaces a service.
-     * @param handle Optional handle with which to replace the service.
+     * @param other Optional handle with which to replace the service.
      */
-    static void reset(const node_type &handle = {}) noexcept {
-        service = handle;
+    static void reset(const node_type &other = {}) noexcept {
+        service = other;
     }
 
 private: