diff options
| author | cristian64 <cristian64@gmail.com> | 2026-04-18 10:23:55 +0100 |
|---|---|---|
| committer | cristian64 <cristian64@gmail.com> | 2026-04-18 10:23:55 +0100 |
| commit | 6059045c59b9aca6232f0e2580582f5673e0e74a (patch) | |
| tree | 69bad290e37369fcdd0badbbf25d3d86349425a3 /Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.cpp | |
| parent | 42175d4e75de1e31c44c734862da698703c92270 (diff) | |
Core: Address `-Wrange-loop-construct` warning.
The warning can be seen since 1f72403ec7ac026ff when GCC 13.3.0 is used:
```counterexample
[1540/1898] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/TextureCacheBase.cpp.o
/w/dolphin/Source/Core/VideoCommon/TextureCacheBase.cpp: In member function 'void TextureCacheBase::ApplyMaterialToCacheEntry(const VideoCommon::MaterialResource&, TCacheEntry*)':
/w/dolphin/Source/Core/VideoCommon/TextureCacheBase.cpp:3136:19: warning: loop variable 'texture' creates a copy from type 'const VideoCommon::MaterialResource::TextureLikeReference' [-Wrange-loop-construct]
3136 | for (const auto texture : material_data->GetTextures())
| ^~~~~~~
/w/dolphin/Source/Core/VideoCommon/TextureCacheBase.cpp:3136:19: note: use reference type to prevent copying
3136 | for (const auto texture : material_data->GetTextures())
| ^~~~~~~
| &
```
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.cpp')
0 files changed, 0 insertions, 0 deletions
