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
4 changed files with 14 additions and 14 deletions
+2 -2
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: