From 02d8cefcdeb1eb8c05c4ee60de96cc4165201eee Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 29 Aug 2022 11:48:17 +0200 Subject: [PATCH] locator: avoid shadow warnings --- src/entt/locator/locator.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/locator/locator.hpp b/src/entt/locator/locator.hpp index 4a3effa5e..af241aa88 100644 --- a/src/entt/locator/locator.hpp +++ b/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: