diff --git a/src/ripple/app/ledger/OpenLedger.h b/src/ripple/app/ledger/OpenLedger.h index 0f8d415df..a7c1df4a2 100644 --- a/src/ripple/app/ledger/OpenLedger.h +++ b/src/ripple/app/ledger/OpenLedger.h @@ -111,7 +111,7 @@ public: non-modifiable snapshot of the open ledger at the time of the call. */ - std::shared_ptr + std::shared_ptr current() const; /** Modify the open ledger diff --git a/src/ripple/app/ledger/impl/OpenLedger.cpp b/src/ripple/app/ledger/impl/OpenLedger.cpp index 5fc3afb5e..0078d48fd 100644 --- a/src/ripple/app/ledger/impl/OpenLedger.cpp +++ b/src/ripple/app/ledger/impl/OpenLedger.cpp @@ -44,7 +44,7 @@ OpenLedger::empty() const return current_->txCount() == 0; } -std::shared_ptr +std::shared_ptr OpenLedger::current() const { std::lock_guard< diff --git a/src/ripple/test/jtx/Env.h b/src/ripple/test/jtx/Env.h index 72bb51039..3ae00f46f 100644 --- a/src/ripple/test/jtx/Env.h +++ b/src/ripple/test/jtx/Env.h @@ -169,7 +169,7 @@ public: will not be visible. */ - std::shared_ptr + std::shared_ptr open() const; /** Returns the last closed ledger. diff --git a/src/ripple/test/jtx/impl/Env.cpp b/src/ripple/test/jtx/impl/Env.cpp index e4fb23b48..343307a64 100644 --- a/src/ripple/test/jtx/impl/Env.cpp +++ b/src/ripple/test/jtx/impl/Env.cpp @@ -91,7 +91,7 @@ Env::Env (beast::unit_test::suite& test_) Pathfinder::initPathTable(); } -std::shared_ptr +std::shared_ptr Env::open() const { return openLedger.current();