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.
This commit is contained in:
Lioncash 2014-07-05 23:03:43 -04:00
parent be1fe80bb6
commit b97d2853a7

View File

@ -127,17 +127,6 @@ public:
}
}
template <typename T>
void DoContainer(T& x)
{
u32 size = (u32)x.size();
Do(size);
x.resize(size);
for (auto& elem : x)
Do(elem);
}
template <typename T>
void Do(std::vector<T>& x)
{
@ -276,6 +265,17 @@ public:
}
private:
template <typename T>
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)