From 364c1ecd8703dadaaa9c7479335e469b153a1be0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 18 Jan 2018 12:28:25 +0100 Subject: compat: split/cleanup util.hpp Some of the headers are clearly useless. Remove them. Move what's inside util.hpp into separate headers. Adjust usages. Will remove util.hpp. --- compat/run-in-thread.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compat/run-in-thread.hpp') diff --git a/compat/run-in-thread.hpp b/compat/run-in-thread.hpp index 67f4b1f5..c2243fc3 100644 --- a/compat/run-in-thread.hpp +++ b/compat/run-in-thread.hpp @@ -7,7 +7,7 @@ * copyright notice and this permission notice appear in all copies. */ -#include "ndebug-guard.hpp" +#include "macros.hpp" #include #include @@ -53,7 +53,8 @@ struct run_in_thread_traits } template -auto run_in_thread_sync(QObject* obj, F&& fun) +auto never_inline +run_in_thread_sync(QObject* obj, F&& fun) -> typename qt_impl_detail::run_in_thread_traits(fun)())>::ret_type { using lock_guard = std::unique_lock; -- cgit v1.2.3