diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-09-27 19:14:44 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-09-27 19:14:44 +0300 |
commit | efa9667c092516dea772c5ea81d904f2aade0c7c (patch) | |
tree | c4aeb7989724b2dded4f2a2f6d736aba8d48d6e5 /source | |
parent | 10061ee18ae97968bc9e0a7d83a353b077329aca (diff) |
Cleanup: Asset catalogs, fix clang-tidy warning
Change `auto &catalog` to `const auto &catalog`.
No functional changes.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/asset_catalog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/asset_catalog.cc b/source/blender/blenkernel/intern/asset_catalog.cc index ee22e25a6ab..8f57f96e771 100644 --- a/source/blender/blenkernel/intern/asset_catalog.cc +++ b/source/blender/blenkernel/intern/asset_catalog.cc @@ -69,7 +69,7 @@ AssetCatalog *AssetCatalogService::find_catalog(CatalogID catalog_id) AssetCatalog *AssetCatalogService::find_catalog_by_path(const CatalogPath &path) const { - for (auto &catalog : catalogs_.values()) { + for (const auto &catalog : catalogs_.values()) { if (catalog->path == path) { return catalog.get(); } |