diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-09-02 20:05:48 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-09-02 20:05:48 +0300 |
commit | 356460f5cf659ef071daa1267ab368b733b4133e (patch) | |
tree | bf5df8d5f3fe845a6c5af8037ff7566558ca0072 /source/blender/draw | |
parent | da0bd86739cf7604042a024297f6eb2fbc737e97 (diff) |
Cleanup: EEVEE-Next: Use reference as suggested by MSVC
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_light.cc | 2 | ||||
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_velocity.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_light.cc b/source/blender/draw/engines/eevee_next/eevee_light.cc index 558a9846ced..24426318878 100644 --- a/source/blender/draw/engines/eevee_next/eevee_light.cc +++ b/source/blender/draw/engines/eevee_next/eevee_light.cc @@ -333,7 +333,7 @@ void LightModule::end_sync() /* This scene data buffer is then immutable after this point. */ light_buf_.push_update(); - for (auto key : deleted_keys) { + for (auto &key : deleted_keys) { light_map_.remove(key); } diff --git a/source/blender/draw/engines/eevee_next/eevee_velocity.cc b/source/blender/draw/engines/eevee_next/eevee_velocity.cc index 36734f0c28c..07fd0387de4 100644 --- a/source/blender/draw/engines/eevee_next/eevee_velocity.cc +++ b/source/blender/draw/engines/eevee_next/eevee_velocity.cc @@ -273,7 +273,7 @@ void VelocityModule::end_sync() inst_.sampling.reset(); } - for (auto key : deleted_obj) { + for (auto &key : deleted_obj) { velocity_map.remove(key); } |