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

@ -9,9 +9,9 @@ using namespace ArduinoJson::Internals;
size_t StringBuilder::write(uint8_t c)
{
if (length >= capacity) return 0;
if (_length >= _capacity) return 0;
buffer[length++] = c;
buffer[length] = 0;
_buffer[_length++] = c;
_buffer[_length] = 0;
return 1;
}