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

memory: suppress a (shadow) warning from gcc

Michele Caini пре 4 година
родитељ
комит
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.