diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2018-10-04 20:58:28 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-10-10 12:57:00 +0300 |
commit | c6983b1a60c4f30d312b99bff47fedf901b66f75 (patch) | |
tree | 97865d0ee7bb3684c55671404192a950f8cdbecd /3party | |
parent | d44c80bcf58c604024a92ac401e6c0da826c9cc8 (diff) |
Added base::Json::DeepCopy.
Diffstat (limited to '3party')
-rw-r--r-- | 3party/jansson/myjansson.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/3party/jansson/myjansson.hpp b/3party/jansson/myjansson.hpp index 76f7054396..15f352231a 100644 --- a/3party/jansson/myjansson.hpp +++ b/3party/jansson/myjansson.hpp @@ -38,6 +38,12 @@ public: explicit Json(std::string const & s) { ParseFrom(s); } explicit Json(char const * s) { ParseFrom(s); } + Json GetDeepCopy() const + { + Json copy; + copy.m_handle = JsonHandle(get_deep_copy()); + return copy; + } void ParseFrom(std::string const & s) { ParseFrom(s.c_str()); } void ParseFrom(char const * s) { |