diff options
Diffstat (limited to 'src/corelib/thread/qthreadpool.cpp')
| -rw-r--r-- | src/corelib/thread/qthreadpool.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/thread/qthreadpool.cpp b/src/corelib/thread/qthreadpool.cpp index fee6354b0aa..239f463a181 100644 --- a/src/corelib/thread/qthreadpool.cpp +++ b/src/corelib/thread/qthreadpool.cpp @@ -47,6 +47,8 @@ QT_BEGIN_NAMESPACE +using namespace Qt::StringLiterals; + /* QThread wrapper, provides synchronization against a ThreadPool */ @@ -277,7 +279,7 @@ void QThreadPoolPrivate::startThread(QRunnable *runnable) Q_ASSERT(runnable != nullptr); auto thread = std::make_unique<QThreadPoolThread>(this); if (objectName.isEmpty()) - objectName = QLatin1String("Thread (pooled)"); + objectName = u"Thread (pooled)"_qs; thread->setObjectName(objectName); Q_ASSERT(!allThreads.contains(thread.get())); // if this assert hits, we have an ABA problem (deleted threads don't get removed here) allThreads.insert(thread.get()); |
