aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/bdb.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-01-31 11:50:10 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-01-31 11:50:10 +0000
commit96ee992ac3535848e2dc717bf284339badd40dcb (patch)
treee7405ed701334a1fcb99c72b5f0301725918f531 /src/wallet/bdb.h
parent357d750cab5221695d718e6d3e8ce63fa2b5ab3a (diff)
downloadbitcoin-96ee992ac3535848e2dc717bf284339badd40dcb.tar.xz
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
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r--src/wallet/bdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h
index 9d1d68ba43..06c98972b0 100644
--- a/src/wallet/bdb.h
+++ b/src/wallet/bdb.h
@@ -207,9 +207,9 @@ private:
bool HasKey(DataStream&& key) override;
protected:
- Db* pdb;
+ Db* pdb{nullptr};
std::string strFile;
- DbTxn* activeTxn;
+ DbTxn* activeTxn{nullptr};
bool fReadOnly;
bool fFlushOnClose;
BerkeleyEnvironment *env;