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/qthread_p.h | |
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/qthread_p.h')
-rw-r--r-- | src/corelib/thread/qthread_p.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/corelib/thread/qthread_p.h b/src/corelib/thread/qthread_p.h index 0a73bf8a36..6565b5777e 100644 --- a/src/corelib/thread/qthread_p.h +++ b/src/corelib/thread/qthread_p.h @@ -109,7 +109,8 @@ public: inline QPostEventList() : QList<QPostEvent>(), recursion(0), startOffset(0), insertionOffset(0) { } - void addEvent(const QPostEvent &ev) { + void addEvent(const QPostEvent &ev) + { int priority = ev.priority; if (isEmpty() || constLast().priority >= priority || @@ -125,6 +126,7 @@ public: insert(at, ev); } } + private: //hides because they do not keep that list sorted. addEvent must be used using QList<QPostEvent>::append; @@ -176,7 +178,7 @@ public: #ifdef Q_OS_WIN static unsigned int __stdcall start(void *) noexcept; - static void finish(void *, bool lockAnyway=true) noexcept; + static void finish(void *, bool lockAnyway = true) noexcept; Qt::HANDLE handle; unsigned int id; @@ -215,7 +217,7 @@ public: QThreadData *data; bool running = false; - static void setCurrentThread(QThread*) {} + static void setCurrentThread(QThread *) { } static QThread *threadForId(int) { return QThread::currentThread(); } static QAbstractEventDispatcher *createEventDispatcher(QThreadData *data); @@ -265,7 +267,7 @@ public: static const uint Count = 2; uint idx; - const char* locations[Count]; + const char *locations[Count]; public: FlaggedDebugSignatures() : idx(0) |