Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-25 04:04:20 +0300
committerCampbell Barton <campbell@blender.org>2022-03-25 04:04:20 +0300
commit4d46fac65d9946382c4be5b3842660e77468f00b (patch)
treec2910a4ca0b2d345007bf853d6484a1b9e53e4e1 /source/blender/editors/asset
parentc594cfbe50497fdc365b3f327b643de507cda02f (diff)
Cleanup: use count or num instead of nbr
Follow conventions from T85728.
Diffstat (limited to 'source/blender/editors/asset')
-rw-r--r--source/blender/editors/asset/intern/asset_indexer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/asset/intern/asset_indexer.cc b/source/blender/editors/asset/intern/asset_indexer.cc
index 49c4002eee8..89db5cf468d 100644
--- a/source/blender/editors/asset/intern/asset_indexer.cc
+++ b/source/blender/editors/asset/intern/asset_indexer.cc
@@ -494,15 +494,15 @@ struct AssetLibraryIndex {
return;
}
struct direntry *dir_entries = nullptr;
- int num_entries = BLI_filelist_dir_contents(index_path, &dir_entries);
- for (int i = 0; i < num_entries; i++) {
+ const int dir_entries_num = BLI_filelist_dir_contents(index_path, &dir_entries);
+ for (int i = 0; i < dir_entries_num; i++) {
struct direntry *entry = &dir_entries[i];
if (BLI_str_endswith(entry->relname, ".index.json")) {
unused_file_indices.add_as(std::string(entry->path));
}
}
- BLI_filelist_free(dir_entries, num_entries);
+ BLI_filelist_free(dir_entries, dir_entries_num);
}
void mark_as_used(const std::string &filename)