diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-20 11:03:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-21 08:53:38 +0200 |
commit | 1be271713ebcbca2f2cc1dd8734f2740165dab96 (patch) | |
tree | f39c4c241bae383427d466e6225889ab3e91efea /src/corelib/thread/qwaitcondition_win.cpp | |
parent | 3e09ac369dc8e2851ff772b9d9dde92fffd959b2 (diff) |
Whitespace cleanup in corelib/ mimetypes, plugin and thread
Done with selective application of clang-format
Change-Id: Iee6bf2426de81356b6d480629ba972f980b6d93d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qwaitcondition_win.cpp')
-rw-r--r-- | src/corelib/thread/qwaitcondition_win.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/corelib/thread/qwaitcondition_win.cpp b/src/corelib/thread/qwaitcondition_win.cpp index 04cfe16576..1529cda089 100644 --- a/src/corelib/thread/qwaitcondition_win.cpp +++ b/src/corelib/thread/qwaitcondition_win.cpp @@ -45,7 +45,7 @@ #include "qlist.h" #include "qalgorithms.h" -#define Q_MUTEX_T void* +#define Q_MUTEX_T void * #include <private/qmutex_p.h> #include <private/qreadwritelock_p.h> #include <qt_windows.h> @@ -87,7 +87,7 @@ QWaitConditionEvent *QWaitConditionPrivate::pre() { mtx.lock(); QWaitConditionEvent *wce = - freeQueue.isEmpty() ? new QWaitConditionEvent : freeQueue.takeFirst(); + freeQueue.isEmpty() ? new QWaitConditionEvent : freeQueue.takeFirst(); wce->priority = GetThreadPriority(GetCurrentThread()); wce->wokenUp = false; @@ -109,7 +109,8 @@ bool QWaitConditionPrivate::wait(QWaitConditionEvent *wce, unsigned long time) // wait for the event bool ret = false; switch (WaitForSingleObjectEx(wce->event, time, FALSE)) { - default: break; + default: + break; case WAIT_OBJECT_0: ret = true; |