[9555] Makes some arguments as references in some ByteBuffer operator methods.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2010-03-08 22:31:24 +01:00
parent 1a75730f41
commit 583e37e5c9
2 changed files with 3 additions and 3 deletions

View file

@ -506,7 +506,7 @@ class ByteBuffer
};
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();
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>
inline ByteBuffer &operator<<(ByteBuffer &b, std::list<T> v)
inline ByteBuffer &operator<<(ByteBuffer &b, std::list<T> const& v)
{
b << (uint32)v.size();
for (typename std::list<T>::iterator i = v.begin(); i != v.end(); ++i)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9554"
#define REVISION_NR "9555"
#endif // __REVISION_NR_H__