Use default initializer on json_patch

This commit is contained in:
Sven Fink 2020-03-06 08:00:41 +01:00
parent 6709194813
commit 2a76a0ca6a
2 changed files with 1 additions and 4 deletions

View File

@ -3,9 +3,6 @@
namespace nlohmann namespace nlohmann
{ {
json_patch::json_patch()
: j_{R"([])"_json} {}
json_patch::json_patch(json &&patch) json_patch::json_patch(json &&patch)
: j_{std::move(patch)} : j_{std::move(patch)}
{ {

View File

@ -20,7 +20,7 @@ private:
class json_patch class json_patch
{ {
public: public:
json_patch(); json_patch() = default;
json_patch(json &&patch); json_patch(json &&patch);
json_patch(const json &patch); json_patch(const json &patch);