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.
This commit is contained in:
2021-09-14 16:08:09 +02:00
parent 426e2663a0
commit dee0b56b92
12 changed files with 67 additions and 98 deletions

View File

@@ -41,7 +41,7 @@ class IndexFieldInput final : public FieldInput {
auto index_func = [](int i) { return i; };
return &scope.construct<
GVArray_For_EmbeddedVArray<int, VArray_For_Func<int, decltype(index_func)>>>(
__func__, mask.min_array_size(), mask.min_array_size(), index_func);
mask.min_array_size(), mask.min_array_size(), index_func);
}
};