diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-05-17 20:12:36 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-05-17 20:12:36 +0100 |
| commit | 7acf11c8519733eb73b9e5e8edca98a4d95d97ac (patch) | |
| tree | e744165f2242d362744884c66986078b018f1f59 /src | |
| parent | 0229baf6ba7598bcb78215d816dda8f79b542540 (diff) | |
Add missing std::move in on_scope_end implementation
Diffstat (limited to 'src')
| -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 516d530c..b56d825f 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -76,7 +76,7 @@ private: template<typename T> OnScopeEnd<T> on_scope_end(T t) { - return OnScopeEnd<T>(t); + return OnScopeEnd<T>{std::move(t)}; } // *** Misc helper functions *** |
