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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user