mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 02:52:30 +02:00
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:
parent
be1fe80bb6
commit
b97d2853a7
@ -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>
|
template <typename T>
|
||||||
void Do(std::vector<T>& x)
|
void Do(std::vector<T>& x)
|
||||||
{
|
{
|
||||||
@ -276,6 +265,17 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
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)
|
__forceinline void DoByte(u8& x)
|
||||||
{
|
{
|
||||||
switch (mode)
|
switch (mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user