| 89 | //============================================================================= |
| 90 | |
| 91 | AutoCleanup::AutoCleanup(std::function<void()> func, bool enable) : cleanupFunc(func), enabled(enable) {} |
| 92 | |
| 93 | AutoCleanup::~AutoCleanup() { |
| 94 | if (enabled && cleanupFunc) { cleanupFunc(); } |
nothing calls this directly
no outgoing calls
no test coverage detected