Skip to content

Commit 2fe83c5

Browse files
committed
Review fixes
1 parent 161b93d commit 2fe83c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rpc/handlers/VaultList.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252

5353
namespace rpc {
5454

55-
VaultListHandler::VaultListHandler(std::shared_ptr<BackendInterface> const& sharedPtrBackend)
56-
: sharedPtrBackend_(sharedPtrBackend)
55+
VaultListHandler::VaultListHandler(std::shared_ptr<BackendInterface> sharedPtrBackend)
56+
: sharedPtrBackend_(std::move(sharedPtrBackend))
5757
{
5858
}
5959

@@ -67,7 +67,7 @@ VaultListHandler::process(VaultListHandler::Input const& input, Context const& c
6767
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
6868
);
6969

70-
if (!expectedLgrInfo.has_value())
70+
if (not expectedLgrInfo.has_value())
7171
return Error{expectedLgrInfo.error()};
7272

7373
auto const& lgrInfo = *expectedLgrInfo;

src/rpc/handlers/VaultList.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class VaultListHandler {
8585
*
8686
* @param sharedPtrBackend The backend to use
8787
*/
88-
VaultListHandler(std::shared_ptr<BackendInterface> const& sharedPtrBackend);
88+
VaultListHandler(std::shared_ptr<BackendInterface> sharedPtrBackend);
8989

9090
/**
9191
* @brief Returns the API specification for the command

0 commit comments

Comments
 (0)