From f50ac3549d6a7f1199fa012e4b03f581bc8d305b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Jun 2018 12:54:47 +0200 Subject: core, modules: modernize syntax only Use more C++17 features where this helps any. --- compat/run-in-thread.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compat/run-in-thread.hpp') diff --git a/compat/run-in-thread.hpp b/compat/run-in-thread.hpp index b425532e..4631fb0c 100644 --- a/compat/run-in-thread.hpp +++ b/compat/run-in-thread.hpp @@ -93,7 +93,7 @@ run_in_thread_sync(QObject* obj, F&& fun) QObject::connect(&src, &QObject::destroyed, obj, - [&]() { + [&] { traits::assign(ret, traits::call(fun)); sem.notify(); }, -- cgit v1.2.3