Renamed writeInteger to writeLong to be more consistent

This commit is contained in:
Benoit Blanchon
2014-11-07 13:27:42 +01:00
parent 35a95f00d9
commit 5a56ec0636
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class JsonWriter {
_length += QuotedString::printTo(value, _sink); _length += QuotedString::printTo(value, _sink);
} }
void writeInteger(long value) { _length += _sink.print(value); } void writeLong(long value) { _length += _sink.print(value); }
void writeBoolean(bool value) { void writeBoolean(bool value) {
_length += _sink.print(value ? "true" : "false"); _length += _sink.print(value ? "true" : "false");

View File

@ -107,7 +107,7 @@ void JsonVariant::writeTo(T &writer) const {
break; break;
case JSON_LONG: case JSON_LONG:
writer.writeInteger(_content.asLong); writer.writeLong(_content.asLong);
break; break;
case JSON_BOOLEAN: case JSON_BOOLEAN: