summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
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;