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.
pull/217/head
Byoungchan Lee 4 years ago committed by GitHub
parent 1d85d71d29
commit 0471de2d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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++) {

Loading…
Cancel
Save