Changed naming convention to avoid shadowing (issue #25)

This commit is contained in:
Benoit Blanchon
2014-09-28 13:36:41 +02:00
parent cc19266470
commit ce788d96c4
19 changed files with 147 additions and 148 deletions

View File

@ -18,22 +18,22 @@ namespace ArduinoJson
public:
JsonPrettyPrint(IndentedPrint& p)
: sink(p)
: _sink(p)
{
previousChar = 0;
inString = false;
_previousChar = 0;
_inString = false;
}
virtual size_t write(uint8_t);
private:
uint8_t previousChar;
IndentedPrint& sink;
bool inString;
uint8_t _previousChar;
IndentedPrint& _sink;
bool _inString;
bool inEmptyBlock()
{
return previousChar == '{' || previousChar == '[';
return _previousChar == '{' || _previousChar == '[';
}
size_t handleStringChar(uint8_t);