@@ -56,8 +56,7 @@ class BackgroundExecutor::Impl : public QThread {
5656
5757/* ============================ BackgroundExecutor ==========================*/
5858
59- BackgroundExecutor::BackgroundExecutor ()
60- : m_ptrImpl(new Impl(*this )) {
59+ BackgroundExecutor::BackgroundExecutor () : m_ptrImpl(new Impl(*this )) {
6160}
6261
6362BackgroundExecutor::~BackgroundExecutor () = default ;
@@ -74,8 +73,7 @@ void BackgroundExecutor::enqueueTask(const TaskPtr& task) {
7473
7574/* ===================== BackgroundExecutor::Dispatcher =====================*/
7675
77- BackgroundExecutor::Dispatcher::Dispatcher (Impl& owner)
78- : m_rOwner(owner) {
76+ BackgroundExecutor::Dispatcher::Dispatcher (Impl& owner) : m_rOwner(owner) {
7977}
8078
8179void BackgroundExecutor::Dispatcher::customEvent (QEvent* event) {
@@ -88,9 +86,7 @@ void BackgroundExecutor::Dispatcher::customEvent(QEvent* event) {
8886
8987 const TaskResultPtr result ((*task)());
9088 if (result) {
91- QCoreApplication::postEvent (
92- &m_rOwner, new ResultEvent (result)
93- );
89+ QCoreApplication::postEvent (&m_rOwner, new ResultEvent (result));
9490 }
9591 } catch (const std::bad_alloc&) {
9692 OutOfMemoryHandler::instance ().handleOutOfMemorySituation ();
@@ -100,9 +96,7 @@ void BackgroundExecutor::Dispatcher::customEvent(QEvent* event) {
10096/* ======================= BackgroundExecutor::Impl =========================*/
10197
10298BackgroundExecutor::Impl::Impl (BackgroundExecutor& owner)
103- : m_rOwner(owner),
104- m_dispatcher(*this ),
105- m_threadStarted(false ) {
99+ : m_rOwner(owner), m_dispatcher(*this ), m_threadStarted(false ) {
106100 m_dispatcher.moveToThread (this );
107101}
108102
@@ -132,4 +126,3 @@ void BackgroundExecutor::Impl::customEvent(QEvent* event) {
132126
133127 (*result)();
134128}
135-
0 commit comments