mirror of https://github.com/qt/qtdatavis3d.git
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:
parent
cec5d284e2
commit
3f8ae713df
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue