mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Containers: Warning fixes and RandomResizeList with predicate optimization
(cherry picked from commit 0fbfa8ead0)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user