summaryrefslogtreecommitdiffstats
path: root/src/extras/geometries/qcylindergeometry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras/geometries/qcylindergeometry.cpp')
-rw-r--r--src/extras/geometries/qcylindergeometry.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/extras/geometries/qcylindergeometry.cpp b/src/extras/geometries/qcylindergeometry.cpp
index f42cb0a46..de9d25f9b 100644
--- a/src/extras/geometries/qcylindergeometry.cpp
+++ b/src/extras/geometries/qcylindergeometry.cpp
@@ -198,7 +198,7 @@ public:
bool operator ==(const QBufferDataGenerator &other) const Q_DECL_OVERRIDE
{
const CylinderVertexDataFunctor *otherFunctor = functor_cast<CylinderVertexDataFunctor>(&other);
- if (otherFunctor != Q_NULLPTR)
+ if (otherFunctor != nullptr)
return (otherFunctor->m_rings == m_rings &&
otherFunctor->m_slices == m_slices &&
otherFunctor->m_radius == m_radius &&
@@ -247,7 +247,7 @@ public:
bool operator ==(const QBufferDataGenerator &other) const Q_DECL_OVERRIDE
{
const CylinderIndexDataFunctor *otherFunctor = functor_cast<CylinderIndexDataFunctor>(&other);
- if (otherFunctor != Q_NULLPTR)
+ if (otherFunctor != nullptr)
return (otherFunctor->m_rings == m_rings &&
otherFunctor->m_slices == m_slices &&
otherFunctor->m_length == m_length);
@@ -269,12 +269,12 @@ QCylinderGeometryPrivate::QCylinderGeometryPrivate()
, m_slices(16)
, m_radius(1.0f)
, m_length(1.0f)
- , m_positionAttribute(Q_NULLPTR)
- , m_normalAttribute(Q_NULLPTR)
- , m_texCoordAttribute(Q_NULLPTR)
- , m_indexAttribute(Q_NULLPTR)
- , m_vertexBuffer(Q_NULLPTR)
- , m_indexBuffer(Q_NULLPTR)
+ , m_positionAttribute(nullptr)
+ , m_normalAttribute(nullptr)
+ , m_texCoordAttribute(nullptr)
+ , m_indexAttribute(nullptr)
+ , m_vertexBuffer(nullptr)
+ , m_indexBuffer(nullptr)
{
}