Browse Source

Avoid -Wshadow errors

Suggested by Pavel Janik.
tags/v0.15.1
Pieter Wuille 5 years ago
parent
commit
a603925c77
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/serialize.h

+ 3
- 3
src/serialize.h View File

@@ -438,7 +438,7 @@ class LimitedString
protected:
std::string& string;
public:
LimitedString(std::string& string) : string(string) {}
LimitedString(std::string& _string) : string(_string) {}

template<typename Stream>
void Unserialize(Stream& s)
@@ -810,9 +810,9 @@ protected:
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<typename T>

Loading…
Cancel
Save