diff options
Diffstat (limited to 'src/utils.hh')
| -rw-r--r-- | src/utils.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.hh b/src/utils.hh index ec6965a8..9b6d87bb 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -65,11 +65,11 @@ class OnScopeEnd { public: [[gnu::always_inline]] - OnScopeEnd(T func) : m_func{std::move(func)}, m_valid{true} {} + OnScopeEnd(T func) : m_valid{true}, m_func{std::move(func)} {} [[gnu::always_inline]] OnScopeEnd(OnScopeEnd&& other) - : m_func{std::move(other.m_func)}, m_valid{other.m_valid} + : m_valid{other.m_valid}, m_func{std::move(other.m_func)} { other.m_valid = false; } [[gnu::always_inline]] |
