summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-05 14:49:44 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-08 08:12:48 +0200
commit14abe90c9fb7e31972b2991f6778233f0e71779e (patch)
tree32dab433a3b6aefae3428df5f3fcd0762f2f7806 /src/shared
parent9bf6eb92858c05455221e8b6925485e65c4f4b50 (diff)
downloadqtwayland-14abe90c9fb7e31972b2991f6778233f0e71779e.tar.gz
Use QList instead of QVector
Task-number: QTBUG-84469 Change-Id: I4bc7b2eb2913fc828f09f96e21480b76cabf8656 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/qwaylandsharedmemoryformathelper_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/qwaylandsharedmemoryformathelper_p.h b/src/shared/qwaylandsharedmemoryformathelper_p.h
index 72cc8401..ac4428df 100644
--- a/src/shared/qwaylandsharedmemoryformathelper_p.h
+++ b/src/shared/qwaylandsharedmemoryformathelper_p.h
@@ -71,7 +71,7 @@ public:
default: return QImage::Format_Invalid;
}
}
- static inline QVector<wl_shm_format> supportedWaylandFormats();
+ static inline QList<wl_shm_format> supportedWaylandFormats();
private:
//IMPLEMENTATION (which has to be inline in the header because of the include trick)
@@ -127,9 +127,9 @@ wl_shm_format QWaylandSharedMemoryFormatHelper::fromQImageFormat(QImage::Format
return array.data[format];
}
-QVector<wl_shm_format> QWaylandSharedMemoryFormatHelper::supportedWaylandFormats()
+QList<wl_shm_format> QWaylandSharedMemoryFormatHelper::supportedWaylandFormats()
{
- QVector<wl_shm_format> retFormats;
+ QList<wl_shm_format> retFormats;
Array array = getData();
for (size_t i = 0; i < array.size; i++) {
if (int(array.data[i]) != INT_MIN