Skip to content

Commit

Permalink
account_tx move attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcobb23 committed Apr 14, 2020
1 parent 4f422f6 commit 92a60d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/ripple/app/misc/NetworkOPs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2268,8 +2268,8 @@ NetworkOPsImp::getTxsAccountB(
auto bound = [&ret](
std::uint32_t ledgerIndex,
std::string const& status,
Blob const& rawTxn,
Blob const& rawMeta) {
Blob&& rawTxn,
Blob&& rawMeta) {
ret.emplace_back(std::move(rawTxn), std::move(rawMeta), ledgerIndex);
};

Expand Down
8 changes: 4 additions & 4 deletions src/ripple/app/misc/impl/AccountTxPaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ accountTxPage(
std::function<void(
std::uint32_t,
std::string const&,
Blob const&,
Blob const&)> const& onTransaction,
Blob&&,
Blob&&)> const& onTransaction,
AccountID const& account,
std::int32_t minLedger,
std::int32_t maxLedger,
Expand Down Expand Up @@ -250,8 +250,8 @@ accountTxPage(
onTransaction(
rangeCheckedCast<std::uint32_t>(ledgerSeq.value_or(0)),
*status,
rawData,
rawMeta);
std::move(rawData),
std::move(rawMeta));
--numberOfResults;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/ripple/app/misc/impl/AccountTxPaging.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ accountTxPage(
std::function<void(
std::uint32_t,
std::string const&,
Blob const&,
Blob const&)> const& onTransaction,
Blob &&,
Blob &&)> const& onTransaction,
AccountID const& account,
std::int32_t minLedger,
std::int32_t maxLedger,
Expand Down

0 comments on commit 92a60d5

Please sign in to comment.