diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-06-15 21:42:57 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-06-17 11:19:46 -0700 |
commit | 818c5eee08840355d70d2f3bdf1a2f17986a5e70 (patch) | |
tree | e6db0b1344385f8c48820c58d7297f653bff39f7 /src/google/protobuf/util/internal/json_objectwriter.cc | |
parent | e96ff30120a3834f7d1e31e43e591bf7cfbd731f (diff) | |
download | protobuf-818c5eee08840355d70d2f3bdf1a2f17986a5e70.tar.gz protobuf-818c5eee08840355d70d2f3bdf1a2f17986a5e70.tar.bz2 protobuf-818c5eee08840355d70d2f3bdf1a2f17986a5e70.zip |
Fix broken builds.
Diffstat (limited to 'src/google/protobuf/util/internal/json_objectwriter.cc')
-rw-r--r-- | src/google/protobuf/util/internal/json_objectwriter.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/google/protobuf/util/internal/json_objectwriter.cc b/src/google/protobuf/util/internal/json_objectwriter.cc index d14ae10a..0c41515f 100644 --- a/src/google/protobuf/util/internal/json_objectwriter.cc +++ b/src/google/protobuf/util/internal/json_objectwriter.cc @@ -80,22 +80,22 @@ JsonObjectWriter* JsonObjectWriter::EndList() { } JsonObjectWriter* JsonObjectWriter::RenderBool(StringPiece name, - const bool value) { + bool value) { return RenderSimple(name, value ? "true" : "false"); } JsonObjectWriter* JsonObjectWriter::RenderInt32(StringPiece name, - const int32 value) { + int32 value) { return RenderSimple(name, SimpleItoa(value)); } JsonObjectWriter* JsonObjectWriter::RenderUint32(StringPiece name, - const uint32 value) { + uint32 value) { return RenderSimple(name, SimpleItoa(value)); } JsonObjectWriter* JsonObjectWriter::RenderInt64(StringPiece name, - const int64 value) { + int64 value) { WritePrefix(name); WriteChar('"'); stream_->WriteString(SimpleItoa(value)); @@ -104,7 +104,7 @@ JsonObjectWriter* JsonObjectWriter::RenderInt64(StringPiece name, } JsonObjectWriter* JsonObjectWriter::RenderUint64(StringPiece name, - const uint64 value) { + uint64 value) { WritePrefix(name); WriteChar('"'); stream_->WriteString(SimpleItoa(value)); @@ -113,7 +113,7 @@ JsonObjectWriter* JsonObjectWriter::RenderUint64(StringPiece name, } JsonObjectWriter* JsonObjectWriter::RenderDouble(StringPiece name, - const double value) { + double value) { if (isfinite(value)) return RenderSimple(name, SimpleDtoa(value)); // Render quoted with NaN/Infinity-aware DoubleAsString. @@ -121,7 +121,7 @@ JsonObjectWriter* JsonObjectWriter::RenderDouble(StringPiece name, } JsonObjectWriter* JsonObjectWriter::RenderFloat(StringPiece name, - const float value) { + float value) { if (isfinite(value)) return RenderSimple(name, SimpleFtoa(value)); // Render quoted with NaN/Infinity-aware FloatAsString. |