diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-11-20 17:06:08 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-12-01 09:29:41 +0000 |
commit | eb28fe54df81a1006ba5032f859d48349237ace8 (patch) | |
tree | 39deeadccf926014726055d726348a9678e86ca4 /src/render/io/qaxisalignedboundingbox_p.h | |
parent | b96d3752e30d0556b812ce0f620738e18ee467ea (diff) |
Convert containers to use std::vector
Change-Id: Id1445c48761890836f965bee5c28df9b17e1fca4
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/io/qaxisalignedboundingbox_p.h')
-rw-r--r-- | src/render/io/qaxisalignedboundingbox_p.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/render/io/qaxisalignedboundingbox_p.h b/src/render/io/qaxisalignedboundingbox_p.h index 6ed3d9fd4..7b01243cd 100644 --- a/src/render/io/qaxisalignedboundingbox_p.h +++ b/src/render/io/qaxisalignedboundingbox_p.h @@ -51,7 +51,7 @@ // We mean it. // -#include <QList> +#include <vector> #include <QMatrix4x4> #include <QVector3D> @@ -67,13 +67,13 @@ class QAxisAlignedBoundingBox { public: inline QAxisAlignedBoundingBox() - : m_center(), - m_radii() + : m_center() + , m_radii() {} - inline explicit QAxisAlignedBoundingBox(const QList<QVector3D> &points) - : m_center(), - m_radii() + inline explicit QAxisAlignedBoundingBox(const std::vector<QVector3D> &points) + : m_center() + , m_radii() { update(points); } @@ -86,7 +86,7 @@ public: bool isNull() const { return m_center.isNull() && m_radii.isNull(); } - void Q_3DRENDERSHARED_PRIVATE_EXPORT update(const QList<QVector3D> &points); + void Q_3DRENDERSHARED_PRIVATE_EXPORT update(const std::vector<QVector3D> &points); inline QVector3D center() const { return m_center; } inline QVector3D radii() const { return m_radii; } @@ -115,12 +115,12 @@ public: inline void expandToContain(const QVector3D &pt) { - update(QList<QVector3D> { pt }); + update(std::vector<QVector3D> { pt }); } inline void expandToContain(const QAxisAlignedBoundingBox &other) { - update(QList<QVector3D> { other.minPoint(), other.maxPoint() }); + update(std::vector<QVector3D> { other.minPoint(), other.maxPoint() }); } inline QAxisAlignedBoundingBox transformBy(const QMatrix4x4 &mat) const |