diff options
| author | Justin Frank <justinpfrank@protonmail.com> | 2019-02-08 20:41:09 -0800 |
|---|---|---|
| committer | Justin Frank <justinpfrank@protonmail.com> | 2019-02-27 22:45:31 -0800 |
| commit | 8178400f8dc70aaa5dcbef16f92e50c53d8dc8c1 (patch) | |
| tree | e7834427a9ba22ef92a9d8a8c83241850b33302e /src/utils.hh | |
| parent | 29342836a6b60f46a0f5c4c938a8cd99e2e033ea (diff) | |
Fixed all reorder warnings
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]] |
