From 0471de2d9220a415d9183a22765e40b65e4ef2c4 Mon Sep 17 00:00:00 2001 From: Byoungchan Lee Date: Wed, 16 Dec 2020 06:39:51 +0900 Subject: Fix: Remove unnessary reference to suppress warning (#8337) Apple Clang version 12 (bundled with Xcode 12) complaints about copying small objects in range loop (-Wrange-loop-analysis introduced by -Wall). This warning can be easily avoided by removing the reference from the const pointer type. --- src/network/network_content.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 0140d3ef2..c4d26355c 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -903,7 +903,7 @@ void ClientNetworkContentSocketHandler::ToggleSelectedState(const ContentInfo *c */ void ClientNetworkContentSocketHandler::ReverseLookupDependency(ConstContentVector &parents, const ContentInfo *child) const { - for (const ContentInfo * const &ci : this->infos) { + for (const ContentInfo *ci : this->infos) { if (ci == child) continue; for (uint i = 0; i < ci->dependency_count; i++) { -- cgit v1.2.3-70-g09d2