From 96ee992ac3535848e2dc717bf284339badd40dcb Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 31 Jan 2023 11:50:10 +0000 Subject: clang-tidy: Fix `modernize-use-default-member-init` in headers See https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-default-member-init.html --- src/key.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/key.h') diff --git a/src/key.h b/src/key.h index d5b662c6fc..4e092fffea 100644 --- a/src/key.h +++ b/src/key.h @@ -42,10 +42,10 @@ public: private: //! Whether this private key is valid. We check for correctness when modifying the key //! data, so fValid should always correspond to the actual state. - bool fValid; + bool fValid{false}; //! Whether the public key corresponding to this private key is (to be) compressed. - bool fCompressed; + bool fCompressed{false}; //! The actual byte data std::vector > keydata; @@ -55,7 +55,7 @@ private: public: //! Construct an invalid private key. - CKey() : fValid(false), fCompressed(false) + CKey() { // Important: vch must be 32 bytes in length to not break serialization keydata.resize(32); -- cgit v1.2.3