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

memory: suppress a (shadow) warning from gcc

Michele Caini 4 лет назад
Родитель
Сommit
6439dca43a
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/entt/core/memory.hpp

+ 3 - 3
src/entt/core/memory.hpp

@@ -116,10 +116,10 @@ struct allocation_deleter: private Allocator {
 
     /**
      * @brief Inherited constructors.
-     * @param allocator The allocator to use.
+     * @param alloc The allocator to use.
      */
-    allocation_deleter(const allocator_type &allocator)
-        : Allocator{allocator} {}
+    allocation_deleter(const allocator_type &alloc)
+        : Allocator{alloc} {}
 
     /**
      * @brief Destroys the pointed object and deallocates its memory.