Skip to content

Commit a603925

Browse files
committed
Avoid -Wshadow errors
Suggested by Pavel Janik.
1 parent 5284721 commit a603925

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/serialize.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class LimitedString
438438
protected:
439439
std::string& string;
440440
public:
441-
LimitedString(std::string& string) : string(string) {}
441+
LimitedString(std::string& _string) : string(_string) {}
442442

443443
template<typename Stream>
444444
void Unserialize(Stream& s)
@@ -810,9 +810,9 @@ class CSizeComputer
810810
public:
811811
CSizeComputer(int nTypeIn, int nVersionIn) : nSize(0), nType(nTypeIn), nVersion(nVersionIn) {}
812812

813-
void write(const char *psz, size_t nSize)
813+
void write(const char *psz, size_t _nSize)
814814
{
815-
this->nSize += nSize;
815+
this->nSize += _nSize;
816816
}
817817

818818
template<typename T>

0 commit comments

Comments
 (0)