summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorByoungchan Lee <thisisbclee@gmail.com>2020-12-16 06:39:51 +0900
committerGitHub <noreply@github.com>2020-12-15 22:39:51 +0100
commit0471de2d9220a415d9183a22765e40b65e4ef2c4 (patch)
treedd6a689616f0ee913d8de69106d6d990d874f866 /src
parent1d85d71d29b8d554e9304f3feb6c26f8b9faea82 (diff)
downloadopenttd-0471de2d9220a415d9183a22765e40b65e4ef2c4.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/network/network_content.cpp2
1 files changed, 1 insertions, 1 deletions
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++) {