Revision control

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qstaticphysxobjects_p.h"
+ #include <qassert.h>
+ #include <QGlobalStatic>
+ #include <new>
QT_BEGIN_NAMESPACE
- StaticPhysXObjects s_physx = StaticPhysXObjects();
+ Q_GLOBAL_STATIC(StaticPhysXObjects, s_physx);
StaticPhysXObjects &StaticPhysXObjects::getReference()
{
- return s_physx;
+ return *s_physx;
}
QT_END_NAMESPACE