diff --git a/src/test/app/PayChan_test.cpp b/src/test/app/PayChan_test.cpp index 22764086da1..5634ac54a69 100644 --- a/src/test/app/PayChan_test.cpp +++ b/src/test/app/PayChan_test.cpp @@ -946,7 +946,7 @@ struct PayChan_test : public beast::unit_test::suite Env env(*this); env.fund(XRP(10000), alice); - for (auto const a : bobs) + for (auto const& a : bobs) { env.fund(XRP(10000), a); env.close(); @@ -956,7 +956,7 @@ struct PayChan_test : public beast::unit_test::suite // create a channel from alice to every bob account auto const settleDelay = 3600s; auto const channelFunds = XRP(1); - for (auto const b : bobs) + for (auto const& b : bobs) { env(create(alice, b, channelFunds, settleDelay, alice.pk())); } @@ -990,7 +990,7 @@ struct PayChan_test : public beast::unit_test::suite auto const bobsB58 = [&bobs]() -> std::set { std::set r; - for (auto const a : bobs) + for (auto const& a : bobs) r.insert(a.human()); return r; }(); diff --git a/src/test/rpc/AccountCurrencies_test.cpp b/src/test/rpc/AccountCurrencies_test.cpp index 85469d33106..5825d992f40 100644 --- a/src/test/rpc/AccountCurrencies_test.cpp +++ b/src/test/rpc/AccountCurrencies_test.cpp @@ -153,7 +153,7 @@ class AccountCurrencies_test : public beast::unit_test::suite // does not change env(trust(alice, gw["USD"](100), tfSetFreeze)); result = env.rpc ("account_lines", alice.human()); - for (auto const l : result[jss::lines]) + for (auto const& l : result[jss::lines]) BEAST_EXPECT( l[jss::freeze].asBool() == (l[jss::currency] == "USD")); result = env.rpc ("json", "account_currencies",