diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-02-19 22:08:11 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-02-19 23:02:03 +1100 |
| commit | b3f95ee69b4cf8b5ad643647f96adb5cdf0f3997 (patch) | |
| tree | a8b2020dbfdd1088913f7a08f3a4716c7cc7e82f /src/utils.hh | |
| parent | f910d6cb657ff39df5c536929e4146f88acda93f (diff) | |
Slight style tweaks
Diffstat (limited to 'src/utils.hh')
| -rw-r--r-- | src/utils.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.hh b/src/utils.hh index 7b7fd2d7..4b84ce75 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -73,7 +73,7 @@ public: { other.m_valid = false; } [[gnu::always_inline]] - ~OnScopeEnd() noexcept(noexcept(std::declval<T>()())) { if (m_valid) m_func(); } + ~OnScopeEnd() noexcept(noexcept(m_func())) { if (m_valid) m_func(); } private: bool m_valid; |
