diff --git a/src/serialize.h b/src/serialize.h index fc4291fe95ca0..d26d2d52e6046 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -438,7 +438,7 @@ class LimitedString protected: std::string& string; public: - LimitedString(std::string& string) : string(string) {} + LimitedString(std::string& _string) : string(_string) {} template void Unserialize(Stream& s) @@ -810,9 +810,9 @@ class CSizeComputer public: CSizeComputer(int nTypeIn, int nVersionIn) : nSize(0), nType(nTypeIn), nVersion(nVersionIn) {} - void write(const char *psz, size_t nSize) + void write(const char *psz, size_t _nSize) { - this->nSize += nSize; + this->nSize += _nSize; } template