Use QSharedPointer::create() more

This is the result of running the (experimental) clang-tidy check
   qt-modernize-qsharedpointer-create

Discarded changes: none.

Change-Id: Id131553710a846ff131abbc7fd7c01cc5b1da1df
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Marc Mutz 2017-07-21 12:18:21 +02:00
parent cec5d284e2
commit 3f8ae713df
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ AbstractDeclarative::AbstractDeclarative(QQuickItem *parent) :
m_mainThread(QThread::currentThread()),
m_contextThread(0)
{
m_nodeMutex = QSharedPointer<QMutex>(new QMutex);
m_nodeMutex = QSharedPointer<QMutex>::create();
connect(this, &QQuickItem::windowChanged, this, &AbstractDeclarative::handleWindowChanged);