diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-15 23:32:51 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-16 17:17:13 +0200 |
commit | dba5710efa028cc9f7abde0c5fdf06a843ff41a1 (patch) | |
tree | 98988106581843e3ab75867192862f6614d9a711 /Userland/Libraries/LibCrypto/PK/RSA.h | |
parent | 5dbc72a1585c7992b2187db42516b5a49dd6c19d (diff) | |
download | serenity-dba5710efa028cc9f7abde0c5fdf06a843ff41a1.zip |
LibCrypto: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations.
See: https://pvs-studio.com/en/docs/warnings/v832/
Diffstat (limited to 'Userland/Libraries/LibCrypto/PK/RSA.h')
-rw-r--r-- | Userland/Libraries/LibCrypto/PK/RSA.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCrypto/PK/RSA.h b/Userland/Libraries/LibCrypto/PK/RSA.h index 137f1f2f5f..97867c3055 100644 --- a/Userland/Libraries/LibCrypto/PK/RSA.h +++ b/Userland/Libraries/LibCrypto/PK/RSA.h @@ -60,9 +60,7 @@ public: { } - RSAPrivateKey() - { - } + RSAPrivateKey() = default; const Integer& modulus() const { return m_modulus; } const Integer& private_exponent() const { return m_private_exponent; } |