summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-05-17 20:12:36 +0100
committerMaxime Coste <mawww@kakoune.org>2017-05-17 20:12:36 +0100
commit7acf11c8519733eb73b9e5e8edca98a4d95d97ac (patch)
treee744165f2242d362744884c66986078b018f1f59 /src
parent0229baf6ba7598bcb78215d816dda8f79b542540 (diff)
Add missing std::move in on_scope_end implementation
Diffstat (limited to 'src')
-rw-r--r--src/utils.hh2
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 ***