diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-11 21:09:51 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-11 21:09:51 +0900 |
| commit | 7c06b903f3493db95fcf4bd42cccc59e3b4d0692 (patch) | |
| tree | f10a85795bb086e0b257a0e6c6c5ffb05f28f344 /src/json.cc | |
| parent | 7a57ecc5f814dc305e5e4b9bd960d69b43870c0e (diff) | |
Use std::unique_ptr for ValueBase object hierarchy
Diffstat (limited to 'src/json.cc')
| -rw-r--r-- | src/json.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.cc b/src/json.cc index 131b9755..f2481f7f 100644 --- a/src/json.cc +++ b/src/json.cc @@ -85,10 +85,10 @@ std::string jsonEscape(const std::string& s) } // Serializes JSON object or array. -std::string encode(const std::shared_ptr<ValueBase>& json) +std::string encode(const ValueBase* json) { std::ostringstream out; - return encode(out, json.get()).str(); + return encode(out, json).str(); } JsonGetParam::JsonGetParam |
