aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-05-24 18:51:31 +0200
committerShauren <shauren.trinity@gmail.com>2016-05-24 18:52:34 +0200
commita6205e40350e283f81d3fcc6672bfdbd2b8aa4c7 (patch)
treedc442dca396dabd4e8531a3b1fe729398b022627 /src
parent40b38658c46ccabecc3b54588468d0846b35032d (diff)
Core/Containers: Warning fixes and RandomResizeList with predicate optimization
(cherry picked from commit 0fbfa8ead04a59f3eef70f4f2e454e318d895bd9)
Diffstat (limited to 'src')
-rw-r--r--src/common/Utilities/Containers.h4
1 files changed, 2 insertions, 2 deletions
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<class T>
- void RandomResizeList(std::list<T> &list, uint32 size)
+ void RandomResizeList(std::list<T>& 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);
}
/*