Skip to content

Commit

Permalink
Fix copying in ranged for-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ncorgan committed Jul 15, 2023
1 parent f375555 commit 3aadac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/DiscoverServers.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2018-2020 Josh Blum
// 2023 Nicholas Corgan
// SPDX-License-Identifier: BSL-1.0

#include "SoapyClient.hpp"
Expand Down Expand Up @@ -50,7 +51,7 @@ std::vector<std::string> SoapyRemoteDevice::getServerURLs(const int ipVer, const
for (auto it = uuidToUrl.begin(); it != uuidToUrl.end();)
{
int duplicates(0);
for (const auto urlPair : it->second)
for (const auto &urlPair : it->second)
{
duplicates += knownURLs[urlPair.first].count(urlPair.second);
knownURLs[urlPair.first].insert(urlPair.second);
Expand Down

0 comments on commit 3aadac6

Please sign in to comment.