mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9555] Makes some arguments as references in some ByteBuffer operator methods.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
1a75730f41
commit
583e37e5c9
2 changed files with 3 additions and 3 deletions
|
|
@ -506,7 +506,7 @@ class ByteBuffer
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline ByteBuffer &operator<<(ByteBuffer &b, std::vector<T> v)
|
inline ByteBuffer &operator<<(ByteBuffer &b, std::vector<T> const& v)
|
||||||
{
|
{
|
||||||
b << (uint32)v.size();
|
b << (uint32)v.size();
|
||||||
for (typename std::vector<T>::iterator i = v.begin(); i != v.end(); ++i)
|
for (typename std::vector<T>::iterator i = v.begin(); i != v.end(); ++i)
|
||||||
|
|
@ -532,7 +532,7 @@ inline ByteBuffer &operator>>(ByteBuffer &b, std::vector<T> &v)
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline ByteBuffer &operator<<(ByteBuffer &b, std::list<T> v)
|
inline ByteBuffer &operator<<(ByteBuffer &b, std::list<T> const& v)
|
||||||
{
|
{
|
||||||
b << (uint32)v.size();
|
b << (uint32)v.size();
|
||||||
for (typename std::list<T>::iterator i = v.begin(); i != v.end(); ++i)
|
for (typename std::list<T>::iterator i = v.begin(); i != v.end(); ++i)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9554"
|
#define REVISION_NR "9555"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue