Change range-based for-loop to use const auto&. No functionality change.