aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/JSON.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-16 01:44:07 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-16 17:39:14 +0200
commitcdd0b4fb7d48b32686d56364cf170569bdb0149d (patch)
treeb094c966b33575eb9f2e441d1705990f45539bec /libqpdf/JSON.cc
parent2a7d2b63c2a7284d1b1179eefbf64f5dd29aa510 (diff)
downloadqpdf-cdd0b4fb7d48b32686d56364cf170569bdb0149d.tar.zst
Use = default and = delete where possible in classes
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r--libqpdf/JSON.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc
index 4f2a14d9..c02e06b8 100644
--- a/libqpdf/JSON.cc
+++ b/libqpdf/JSON.cc
@@ -5,10 +5,6 @@
#include <cstring>
#include <stdexcept>
-JSON::Members::~Members()
-{
-}
-
JSON::Members::Members(std::shared_ptr<JSON_value> value) :
value(value)
{
@@ -19,14 +15,6 @@ JSON::JSON(std::shared_ptr<JSON_value> value) :
{
}
-JSON::JSON_value::~JSON_value()
-{
-}
-
-JSON::JSON_dictionary::~JSON_dictionary()
-{
-}
-
std::string
JSON::JSON_dictionary::unparse(size_t depth) const
{
@@ -51,10 +39,6 @@ JSON::JSON_dictionary::unparse(size_t depth) const
return result;
}
-JSON::JSON_array::~JSON_array()
-{
-}
-
std::string
JSON::JSON_array::unparse(size_t depth) const
{
@@ -84,10 +68,6 @@ JSON::JSON_string::JSON_string(std::string const& utf8) :
{
}
-JSON::JSON_string::~JSON_string()
-{
-}
-
std::string
JSON::JSON_string::unparse(size_t) const
{
@@ -109,10 +89,6 @@ JSON::JSON_number::JSON_number(std::string const& value) :
{
}
-JSON::JSON_number::~JSON_number()
-{
-}
-
std::string
JSON::JSON_number::unparse(size_t) const
{
@@ -124,20 +100,12 @@ JSON::JSON_bool::JSON_bool(bool val) :
{
}
-JSON::JSON_bool::~JSON_bool()
-{
-}
-
std::string
JSON::JSON_bool::unparse(size_t) const
{
return value ? "true" : "false";
}
-JSON::JSON_null::~JSON_null()
-{
-}
-
std::string
JSON::JSON_null::unparse(size_t) const
{