Skip to content

Commit

Permalink
Merge pull request Tencent#450 from etiennebatise/missing-return-stat…
Browse files Browse the repository at this point in the history
…ement

Add missing return statement, fix Tencent#448
  • Loading branch information
miloyip committed Oct 15, 2015
2 parents 1a4cce2 + edd077f commit 54eb069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/rapidjson/encodedstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class EncodedOutputStream {
void Flush() { os_.Flush(); }

// Not implemented
Ch Peek() const { RAPIDJSON_ASSERT(false); }
Ch Take() { RAPIDJSON_ASSERT(false); }
Ch Peek() const { RAPIDJSON_ASSERT(false); return 0;}
Ch Take() { RAPIDJSON_ASSERT(false); return 0;}
size_t Tell() const { RAPIDJSON_ASSERT(false); return 0; }
Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; }
Expand Down Expand Up @@ -227,8 +227,8 @@ class AutoUTFOutputStream {
void Flush() { os_->Flush(); }

// Not implemented
Ch Peek() const { RAPIDJSON_ASSERT(false); }
Ch Take() { RAPIDJSON_ASSERT(false); }
Ch Peek() const { RAPIDJSON_ASSERT(false); return 0;}
Ch Take() { RAPIDJSON_ASSERT(false); return 0;}
size_t Tell() const { RAPIDJSON_ASSERT(false); return 0; }
Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; }
Expand Down

0 comments on commit 54eb069

Please sign in to comment.