Skip to content

Commit

Permalink
Merge pull request #563 from lioncash/pointerwrap
Browse files Browse the repository at this point in the history
Common: Make DoContainer within PointerWrap private.
  • Loading branch information
dolphin-emu-bot committed Jul 6, 2014
2 parents 8da2bc6 + b97d285 commit 4117b5e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Source/Core/Common/ChunkFile.h
Expand Up @@ -127,17 +127,6 @@ class PointerWrap
}
}

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)
{
Expand Down Expand Up @@ -276,6 +265,17 @@ class PointerWrap
}

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)
Expand Down

0 comments on commit 4117b5e

Please sign in to comment.