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:
authorJacques Lucke <jacques@blender.org>2021-09-14 17:08:09 +0300
committerJacques Lucke <jacques@blender.org>2021-09-14 17:08:09 +0300
commitdee0b56b9216de8f37589b15be2d21cc1b946773 (patch)
tree986b930459ac12d7230e80afd41476c38d9b5bc3 /source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc
parent426e2663a0891d16a497a33b273a5cee1e09f929 (diff)
Cleanup: simplify resource scope methods
Previously, a debug name had to be passed to all methods that added a resource to the `ResourceScope`. The idea was that this would make it easier to find certain bugs. In reality I never found this to be useful, and it was mostly annoying. The thing is, something that is in a resource scope never leaks (unless the resource scope is not destructed of course). Removing the name parameter makes the structure easier to use.
Diffstat (limited to 'source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc')
-rw-r--r--source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc b/source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc
index ae336edfead..1e46fef8d71 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc
@@ -328,7 +328,7 @@ Span<int64_t> spreadsheet_filter_rows(const SpaceSpreadsheet &sspreadsheet,
geometry_data_source->apply_selection_filter(rows_included);
}
- Vector<int64_t> &indices = scope.construct<Vector<int64_t>>(__func__);
+ Vector<int64_t> &indices = scope.construct<Vector<int64_t>>();
index_vector_from_bools(rows_included, indices);
return indices;