Skip to content

Commit

Permalink
Merge pull request Tencent#2014 from lazydroid/dev/lenik/fix_shadowed…
Browse files Browse the repository at this point in the history
…_variables

fix shadowed variable
  • Loading branch information
miloyip authored Apr 6, 2022
2 parents 8261c1d + 6b50098 commit bdc49ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rapidjson/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ class GenericReader {
class NumberStream<InputStream, StackCharacter, true, false> : public NumberStream<InputStream, StackCharacter, false, false> {
typedef NumberStream<InputStream, StackCharacter, false, false> Base;
public:
NumberStream(GenericReader& reader, InputStream& is) : Base(reader, is), stackStream(reader.stack_) {}
NumberStream(GenericReader& reader, InputStream& s) : Base(reader, s), stackStream(reader.stack_) {}

RAPIDJSON_FORCEINLINE Ch TakePush() {
stackStream.Put(static_cast<StackCharacter>(Base::is.Peek()));
Expand All @@ -1459,7 +1459,7 @@ class GenericReader {
class NumberStream<InputStream, StackCharacter, true, true> : public NumberStream<InputStream, StackCharacter, true, false> {
typedef NumberStream<InputStream, StackCharacter, true, false> Base;
public:
NumberStream(GenericReader& reader, InputStream& is) : Base(reader, is) {}
NumberStream(GenericReader& reader, InputStream& s) : Base(reader, s) {}

RAPIDJSON_FORCEINLINE Ch Take() { return Base::TakePush(); }
};
Expand Down

0 comments on commit bdc49ad

Please sign in to comment.