diff options
author | John Stiles <johnstiles@gmail.com> | 2017-03-15 09:28:59 +0300 |
---|---|---|
committer | John Stiles <johnstiles@gmail.com> | 2017-03-15 09:28:59 +0300 |
commit | 31c6c50ac66e5728d086260fc4a5d0993faaf683 (patch) | |
tree | b87b49cea20004812d3ad86929d6233d717995f9 /include/rapidjson/prettywriter.h | |
parent | c7703f8313eadb7ca831298b712977e6477dc0ee (diff) |
Provide a Flush() API within Writer
This is helpful if you’re writing code that needs to control flush
behavior and you don’t want to pass around your buffer object to each
handler function alongside the writer. Seems like an easy convenience
to add.
Diffstat (limited to 'include/rapidjson/prettywriter.h')
-rw-r--r-- | include/rapidjson/prettywriter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rapidjson/prettywriter.h b/include/rapidjson/prettywriter.h index a9d0f02a..2d6a04f6 100644 --- a/include/rapidjson/prettywriter.h +++ b/include/rapidjson/prettywriter.h @@ -152,7 +152,7 @@ public: (void)ret; RAPIDJSON_ASSERT(ret == true); if (Base::level_stack_.Empty()) // end of json text - Base::os_->Flush(); + Base::Flush(); return true; } @@ -176,7 +176,7 @@ public: (void)ret; RAPIDJSON_ASSERT(ret == true); if (Base::level_stack_.Empty()) // end of json text - Base::os_->Flush(); + Base::Flush(); return true; } |