Merge pull request #563 from lioncash/pointerwrap

Common: Make DoContainer within PointerWrap private.
This commit is contained in:
Dolphin Bot 2014-07-06 07:57:22 +02:00
commit 4117b5ec12
1 changed files with 11 additions and 11 deletions

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)