diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-02 15:21:39 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-02 15:21:39 +0000 |
commit | ad11db9144f766d86d4aa4904eecd446fb670597 (patch) | |
tree | ce73e6cf2aa53eb1d4dc38a6cb293c597c5c99a1 /src/blockchain_db/blockchain_db.h | |
parent | miner: restore std::cout precision after modification (diff) | |
download | monero-ad11db9144f766d86d4aa4904eecd446fb670597.tar.xz |
blockchain_db: initialize m_open in base class ctor
It's cleaner this way, since it's a base class field
Coverity 136568
Diffstat (limited to 'src/blockchain_db/blockchain_db.h')
-rw-r--r-- | src/blockchain_db/blockchain_db.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h index 227169614..cce288793 100644 --- a/src/blockchain_db/blockchain_db.h +++ b/src/blockchain_db/blockchain_db.h @@ -538,6 +538,11 @@ protected: public: /** + * @brief An empty constructor. + */ + BlockchainDB(): m_open(false) { } + + /** * @brief An empty destructor. */ virtual ~BlockchainDB() { }; |