diff options
Diffstat (limited to 'src/lib/asn1')
-rw-r--r-- | src/lib/asn1/alg_id.h | 2 | ||||
-rw-r--r-- | src/lib/asn1/asn1_attribute.h | 2 | ||||
-rw-r--r-- | src/lib/asn1/asn1_obj.h | 5 | ||||
-rw-r--r-- | src/lib/asn1/asn1_time.h | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/asn1/alg_id.h b/src/lib/asn1/alg_id.h index 2cd0b350a..0a1ed0c66 100644 --- a/src/lib/asn1/alg_id.h +++ b/src/lib/asn1/alg_id.h @@ -25,7 +25,7 @@ class BOTAN_DLL AlgorithmIdentifier final : public ASN1_Object void encode_into(class DER_Encoder&) const override; void decode_from(class BER_Decoder&) override; - AlgorithmIdentifier() {} + AlgorithmIdentifier() = default; AlgorithmIdentifier(const OID&, Encoding_Option); AlgorithmIdentifier(const std::string&, Encoding_Option); diff --git a/src/lib/asn1/asn1_attribute.h b/src/lib/asn1/asn1_attribute.h index e6bcc5209..24d4a4bf1 100644 --- a/src/lib/asn1/asn1_attribute.h +++ b/src/lib/asn1/asn1_attribute.h @@ -29,7 +29,7 @@ class BOTAN_DLL Attribute final : public ASN1_Object // public member variable: std::vector<uint8_t> parameters; - Attribute() {} + Attribute() = default; Attribute(const OID&, const std::vector<uint8_t>&); Attribute(const std::string&, const std::vector<uint8_t>&); }; diff --git a/src/lib/asn1/asn1_obj.h b/src/lib/asn1/asn1_obj.h index 5e09da2fd..536f75ced 100644 --- a/src/lib/asn1/asn1_obj.h +++ b/src/lib/asn1/asn1_obj.h @@ -73,7 +73,10 @@ class BOTAN_DLL ASN1_Object */ virtual void decode_from(BER_Decoder& from) = 0; - virtual ~ASN1_Object() {} + ASN1_Object() = default; + ASN1_Object(const ASN1_Object&) = default; + ASN1_Object & operator=(const ASN1_Object&) = default; + virtual ~ASN1_Object() = default; }; /** diff --git a/src/lib/asn1/asn1_time.h b/src/lib/asn1/asn1_time.h index a2a526558..99047e475 100644 --- a/src/lib/asn1/asn1_time.h +++ b/src/lib/asn1/asn1_time.h @@ -38,7 +38,7 @@ class BOTAN_DLL X509_Time final : public ASN1_Object int32_t cmp(const X509_Time& other) const; /// Create an invalid X509_Time - X509_Time() {} + X509_Time() = default; /// Create a X509_Time from a time point explicit X509_Time(const std::chrono::system_clock::time_point& time); |