Use const references in ranged for