Skip to content

Commit

Permalink
Delete the default constructor of Public Key class
Browse files Browse the repository at this point in the history
  • Loading branch information
ckeshava committed Jul 25, 2023
1 parent ad4e0b1 commit 35d4db2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ripple/protocol/PublicKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ namespace ripple {
*/
class PublicKey
{
private:
PublicKey() = default;

protected:
// All the constructed public keys are valid, non-empty and contain 33
// bytes of data.
Expand Down Expand Up @@ -92,6 +89,8 @@ class PublicKey
return PublicKey(makeSlice(buf));
}

PublicKey() = delete;

PublicKey(PublicKey const& other);
PublicKey&
operator=(PublicKey const& other);
Expand Down

0 comments on commit 35d4db2

Please sign in to comment.