From a6205e40350e283f81d3fcc6672bfdbd2b8aa4c7 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 24 May 2016 18:51:31 +0200 Subject: Core/Containers: Warning fixes and RandomResizeList with predicate optimization (cherry picked from commit 0fbfa8ead04a59f3eef70f4f2e454e318d895bd9) --- src/common/Utilities/Containers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/Utilities/Containers.h') diff --git a/src/common/Utilities/Containers.h b/src/common/Utilities/Containers.h index 554dcb1b3de..5edb245fd87 100644 --- a/src/common/Utilities/Containers.h +++ b/src/common/Utilities/Containers.h @@ -31,7 +31,7 @@ namespace Trinity namespace Containers { template - void RandomResizeList(std::list &list, uint32 size) + void RandomResizeList(std::list& list, uint32 size) { uint32 list_size = uint32(list.size()); @@ -56,7 +56,7 @@ namespace Trinity if (size) RandomResizeList(listCopy, size); - list = listCopy; + list = std::move(listCopy); } /* -- cgit v1.2.3