1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 14:18:53 +02:00

Change required to compile certain uses of finally, I don't know why

This commit is contained in:
Paul Licameli 2016-12-15 22:22:49 -05:00
parent d174099c3d
commit a9396b912d

View File

@ -745,7 +745,7 @@ using Destroy_ptr = std::unique_ptr<T, Destroyer<T>>;
// Construct this from any copyable function object, such as a lambda
template <typename F>
struct Final_action {
Final_action(F f) : clean{ f } {}
Final_action(F f) : clean( f ) {}
~Final_action() { clean(); }
F clean;
};