diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-05 14:49:44 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-08 08:12:48 +0200 |
commit | 14abe90c9fb7e31972b2991f6778233f0e71779e (patch) | |
tree | 32dab433a3b6aefae3428df5f3fcd0762f2f7806 /src/compositor/extensions/qwaylandxdgshellv5.cpp | |
parent | 9bf6eb92858c05455221e8b6925485e65c4f4b50 (diff) |
Use QList instead of QVector
Task-number: QTBUG-84469
Change-Id: I4bc7b2eb2913fc828f09f96e21480b76cabf8656
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshellv5.cpp')
-rw-r--r-- | src/compositor/extensions/qwaylandxdgshellv5.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv5.cpp b/src/compositor/extensions/qwaylandxdgshellv5.cpp index c6ef34e7b..6d0d269db 100644 --- a/src/compositor/extensions/qwaylandxdgshellv5.cpp +++ b/src/compositor/extensions/qwaylandxdgshellv5.cpp @@ -1165,7 +1165,7 @@ QRect QWaylandXdgSurfaceV5::windowGeometry() const * * This property holds the last states the client acknowledged for this QWaylandXdgSurfaceV5. */ -QVector<uint> QWaylandXdgSurfaceV5::states() const +QList<uint> QWaylandXdgSurfaceV5::states() const { Q_D(const QWaylandXdgSurfaceV5); return d->m_lastAckedConfigure.states; @@ -1256,7 +1256,7 @@ QSize QWaylandXdgSurfaceV5::sizeForResize(const QSizeF &size, const QPointF &del * Sends a configure event to the client. Parameter \a size contains the pixel size * of the surface. Known \a states are enumerated in QWaylandXdgSurfaceV5::State. */ -uint QWaylandXdgSurfaceV5::sendConfigure(const QSize &size, const QVector<uint> &states) +uint QWaylandXdgSurfaceV5::sendConfigure(const QSize &size, const QList<uint> &states) { if (!size.isValid()) { qWarning() << "Can't configure xdg surface (v5) with an invalid size" << size; @@ -1274,9 +1274,9 @@ uint QWaylandXdgSurfaceV5::sendConfigure(const QSize &size, const QVector<uint> return serial; } -uint QWaylandXdgSurfaceV5::sendConfigure(const QSize &size, const QVector<QWaylandXdgSurfaceV5::State> &states) +uint QWaylandXdgSurfaceV5::sendConfigure(const QSize &size, const QList<QWaylandXdgSurfaceV5::State> &states) { - QVector<uint> asUints; + QList<uint> asUints; asUints.reserve(states.size()); for (QWaylandXdgSurfaceV5::State state : states) { asUints << state; |