aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-03-22 10:57:18 -0700
committerwarptangent <warptangent@inbox.com>2015-03-22 15:45:36 -0700
commit4bedd68d2c058184333101e4d3a31856f6226cd4 (patch)
tree015b313092cec3288f5cf8483eafcbe04128732f /src/cryptonote_core/blockchain.h
parentAdd README for blockchain converter, importer, and exporter utilities (diff)
downloadmonero-4bedd68d2c058184333101e4d3a31856f6226cd4.tar.xz
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.
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index da4da075b..dc98a56a4 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -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: