mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 04:25:51 +00:00
Fix clang warnings about copies vs references:
A recent version of clang notes a number of places in range for loops where the code base was making unnecessary copies or using const lvalue references to extend lifetimes. This fixes the places that clang identified.
This commit is contained in:
committed by
manojsdoshi
parent
22cc9a254a
commit
2a7c573dec
@@ -99,7 +99,7 @@ void
|
||||
ValidatorList::PublisherListStats::mergeDispositions(
|
||||
PublisherListStats const& src)
|
||||
{
|
||||
for (auto const [disp, count] : src.dispositions)
|
||||
for (auto const& [disp, count] : src.dispositions)
|
||||
{
|
||||
dispositions[disp] += count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user