From b97d2853a79d134935691ba2983cfd66bc78d2cf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Jul 2014 23:03:43 -0400 Subject: [PATCH] Common: Make DoContainer within PointerWrap private. This shouldn't really be exposed as a public function and should only be called through other Do class functions that take a container type as a parameter. --- Source/Core/Common/ChunkFile.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index 74cf9f475b..e0aecbea94 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -127,17 +127,6 @@ public: } } - template - void DoContainer(T& x) - { - u32 size = (u32)x.size(); - Do(size); - x.resize(size); - - for (auto& elem : x) - Do(elem); - } - template void Do(std::vector& x) { @@ -276,6 +265,17 @@ public: } private: + template + void DoContainer(T& x) + { + size_t size = x.size(); + Do(size); + x.resize(size); + + for (auto& elem : x) + Do(elem); + } + __forceinline void DoByte(u8& x) { switch (mode)