Fixed many cpplint warnings

This commit is contained in:
Benoit Blanchon
2014-10-24 00:08:25 +02:00
parent 7f22a1ab39
commit 8071434515
7 changed files with 33 additions and 33 deletions

View File

@ -102,8 +102,8 @@ JsonNode *JsonParser::parseNumber() {
char *endOfLong;
long longValue = strtol(_ptr, &endOfLong, 10);
if (*endOfLong == '.') // stopped on a decimal separator
{
if (*endOfLong == '.') {
// stopped on a decimal separator
double value = strtod(_ptr, &_ptr);
int decimals = _ptr - endOfLong - 1;
return _buffer->createDoubleNode(value, decimals);