mirror of
https://github.com/monero-project/monero.git
synced 2025-07-25 05:55:29 -04:00
Update Blockchain::get_db() to return reference instead of pointer
Where this method is used, a BlockchainDB object is always expected, so a pointer is unnecessary and less safe.
This commit is contained in:
parent
0386e9925b
commit
4bedd68d2c
4 changed files with 14 additions and 14 deletions
|
@ -145,9 +145,9 @@ namespace cryptonote
|
|||
void set_enforce_dns_checkpoints(bool enforce);
|
||||
bool update_checkpoints(const std::string& file_path, bool check_dns);
|
||||
|
||||
BlockchainDB* get_db()
|
||||
BlockchainDB& get_db()
|
||||
{
|
||||
return m_db;
|
||||
return *m_db;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue