Skip to content

Commit

Permalink
[tests] Fixed range loop construct warning
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 13, 2021
1 parent b214122 commit bc5a642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_socket_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ bool CheckMaxValue(const OptionTestEntry& entry, SRTSOCKET sock, const char* des
template<class ValueType>
bool CheckInvalidValues(const OptionTestEntry& entry, SRTSOCKET sock, const char* sock_name)
{
for (const auto inval : entry.invalid_vals)
for (const auto& inval : entry.invalid_vals)
{
try {
const ValueType val = linb::any_cast<ValueType>(inval);
Expand Down

0 comments on commit bc5a642

Please sign in to comment.