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:
warptangent 2015-03-22 10:57:18 -07:00
parent 0386e9925b
commit 4bedd68d2c
No known key found for this signature in database
GPG key ID: 0E490BEBFBE4E92D
4 changed files with 14 additions and 14 deletions

View file

@ -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: