diff options
author | Jack Lloyd <[email protected]> | 2017-10-03 09:57:04 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-03 09:57:04 -0400 |
commit | 26517eb98af4c3bb1faf38653ab55ae0956578eb (patch) | |
tree | 61ebd8ee9568369a4f2e6ff1806d47213f20032d /src/lib/asn1 | |
parent | 698f78182485587b6aa7773a43beac9033064e89 (diff) |
Avoid empty methods, use =default or add a comment
Sonar
Diffstat (limited to 'src/lib/asn1')
-rw-r--r-- | src/lib/asn1/x509_dn.cpp | 7 | ||||
-rw-r--r-- | src/lib/asn1/x509_dn.h | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/asn1/x509_dn.cpp b/src/lib/asn1/x509_dn.cpp index a7ceeef4c..dd92b25ec 100644 --- a/src/lib/asn1/x509_dn.cpp +++ b/src/lib/asn1/x509_dn.cpp @@ -17,13 +17,6 @@ namespace Botan { /* -* Create an empty X509_DN -*/ -X509_DN::X509_DN() - { - } - -/* * Create an X509_DN */ X509_DN::X509_DN(const std::multimap<OID, std::string>& args) diff --git a/src/lib/asn1/x509_dn.h b/src/lib/asn1/x509_dn.h index eb2682b10..09f8cf16b 100644 --- a/src/lib/asn1/x509_dn.h +++ b/src/lib/asn1/x509_dn.h @@ -39,7 +39,7 @@ class BOTAN_PUBLIC_API(2,0) X509_DN final : public ASN1_Object bool empty() const { return m_dn_info.empty(); } - X509_DN(); + X509_DN() = default; explicit X509_DN(const std::multimap<OID, std::string>&); explicit X509_DN(const std::multimap<std::string, std::string>&); private: |