Fix unneeded copies in range some range for loops:

clang 10 warns about an unneeded copy for these range for
loops (range-loop-construct warnings)
This commit is contained in:
seelabs
2020-03-24 22:25:41 -07:00
committed by manojsdoshi
parent d097819c52
commit ade5eb71cf
2 changed files with 4 additions and 4 deletions

View File

@@ -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",