summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-25 14:14:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-25 14:14:35 +0100
commit5da4c7bbb660e044800193c341ee3337acc6ef66 (patch)
tree9e4ffa6b35d81bf98ecfe6f0ffd2a524d7543181 /compat
parentd91e09c8c4aada9800d9ca234f151354da30364c (diff)
compat: fix more std::forward misuse
Diffstat (limited to 'compat')
-rw-r--r--compat/run-in-thread.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/run-in-thread.hpp b/compat/run-in-thread.hpp
index c2243fc3..b425532e 100644
--- a/compat/run-in-thread.hpp
+++ b/compat/run-in-thread.hpp
@@ -55,11 +55,11 @@ struct run_in_thread_traits<void>
template<typename F>
auto never_inline
run_in_thread_sync(QObject* obj, F&& fun)
- -> typename qt_impl_detail::run_in_thread_traits<decltype(std::forward<F>(fun)())>::ret_type
+ -> typename qt_impl_detail::run_in_thread_traits<decltype(fun())>::ret_type
{
using lock_guard = std::unique_lock<std::mutex>;
- using traits = qt_impl_detail::run_in_thread_traits<decltype(std::forward<F>(fun)())>;
+ using traits = qt_impl_detail::run_in_thread_traits<decltype(fun())>;
typename traits::type ret;