diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-08-23 02:03:02 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-08-23 02:03:02 +0100 |
commit | 65aab79e40e5e74cde61517dbc3c2e8a661beb9d (patch) | |
tree | 1d2885002e8612e04232729c87d27532fb81ef80 | |
parent | Cache the Hook name/column relation for non-subclass multi-row selects (diff) | |
download | slicer-65aab79e40e5e74cde61517dbc3c2e8a661beb9d.tar.bz2 slicer-65aab79e40e5e74cde61517dbc3c2e8a661beb9d.tar.xz slicer-65aab79e40e5e74cde61517dbc3c2e8a661beb9d.zip |
Prevent multiple inline copies of json::Value destructor
-rw-r--r-- | slicer/json/serializer.cpp | 2 | ||||
-rw-r--r-- | slicer/json/serializer.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/slicer/json/serializer.cpp b/slicer/json/serializer.cpp index 5b2725b..4070231 100644 --- a/slicer/json/serializer.cpp +++ b/slicer/json/serializer.cpp @@ -395,6 +395,8 @@ namespace Slicer { {}); } + JsonValueSerializer::~JsonValueSerializer() = default; + void JsonValueSerializer::Serialize(ModelPartForRootParam modelRoot) { diff --git a/slicer/json/serializer.h b/slicer/json/serializer.h index bba1486..682ec27 100644 --- a/slicer/json/serializer.h +++ b/slicer/json/serializer.h @@ -13,6 +13,10 @@ namespace Slicer { class DLL_PUBLIC JsonValueSerializer : public Serializer { public: + JsonValueSerializer() = default; + ~JsonValueSerializer() override; + SPECIAL_MEMBERS_DEFAULT(JsonValueSerializer); + void Serialize(ModelPartForRootParam) override; protected: |