Skip to content

Commit 90b28a9

Browse files
rzvncjJenkins-dev
authored andcommitted
Remove unnecessary DataChannelKey default constructor
Explicitly writing a default constructor is not necessary here, because there are no other constructors in the class that could suppress automatic compiler generation of it, and all the struct members are also default-constructible. Signed-off-by: Razvan Cojocaru <[email protected]>
1 parent 601955a commit 90b28a9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

openvpn/ssl/proto.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,9 +1702,6 @@ class ProtoContext : public logging::LoggingMixin<OPENVPN_DEBUG_PROTO,
17021702
// for example if cipher/digest are pushed.
17031703
struct DataChannelKey
17041704
{
1705-
//! Default do-nothing constructor.
1706-
DataChannelKey() = default;
1707-
17081705
OpenVPNStaticKey key;
17091706
std::optional<CryptoDCInstance::RekeyType> rekey_type;
17101707
};

0 commit comments

Comments
 (0)