OpenLedger::current returns OpenView const.

This commit is contained in:
Edward Hennis
2015-10-06 15:33:42 -04:00
parent 5707988155
commit dc1276efa3
4 changed files with 4 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ public:
non-modifiable snapshot of the open ledger non-modifiable snapshot of the open ledger
at the time of the call. at the time of the call.
*/ */
std::shared_ptr<ReadView const> std::shared_ptr<OpenView const>
current() const; current() const;
/** Modify the open ledger /** Modify the open ledger

View File

@@ -44,7 +44,7 @@ OpenLedger::empty() const
return current_->txCount() == 0; return current_->txCount() == 0;
} }
std::shared_ptr<ReadView const> std::shared_ptr<OpenView const>
OpenLedger::current() const OpenLedger::current() const
{ {
std::lock_guard< std::lock_guard<

View File

@@ -169,7 +169,7 @@ public:
will not be visible. will not be visible.
*/ */
std::shared_ptr<ReadView const> std::shared_ptr<OpenView const>
open() const; open() const;
/** Returns the last closed ledger. /** Returns the last closed ledger.

View File

@@ -91,7 +91,7 @@ Env::Env (beast::unit_test::suite& test_)
Pathfinder::initPathTable(); Pathfinder::initPathTable();
} }
std::shared_ptr<ReadView const> std::shared_ptr<OpenView const>
Env::open() const Env::open() const
{ {
return openLedger.current(); return openLedger.current();