Skip to content

Commit 42403ac

Browse files
committed
Delete the Cert default constructor with the others.
1 parent 07ad3aa commit 42403ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/log/cert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class Cert {
3030
// Will return null if |x509| is null.
3131
static std::unique_ptr<Cert> FromX509(ScopedX509 x509);
3232

33+
Cert() = delete;
3334
Cert(const Cert&) = delete;
3435
Cert& operator=(const Cert&) = delete;
3536

@@ -198,7 +199,6 @@ class Cert {
198199
private:
199200
// Will CHECK-fail if |x509| is null.
200201
explicit Cert(ScopedX509 x509);
201-
Cert() = delete;
202202

203203
util::StatusOr<int> ExtensionIndex(int extension_nid) const;
204204
util::StatusOr<X509_EXTENSION*> GetExtension(int extension_nid) const;

0 commit comments

Comments
 (0)