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.
This commit is contained in:
Byoungchan Lee 2020-12-16 06:39:51 +09:00 committed by GitHub
parent 1d85d71d29
commit 0471de2d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -903,7 +903,7 @@ void ClientNetworkContentSocketHandler::ToggleSelectedState(const ContentInfo *c
*/ */
void ClientNetworkContentSocketHandler::ReverseLookupDependency(ConstContentVector &parents, const ContentInfo *child) const 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; if (ci == child) continue;
for (uint i = 0; i < ci->dependency_count; i++) { for (uint i = 0; i < ci->dependency_count; i++) {