path: root/src/plugins/platforms/xcb/qxcbdrag.h
diff options
authorMarc Mutz <>2013-10-05 22:42:52 +0200
committerThe Qt Project <>2014-02-26 22:03:21 +0100
commite3db3c4d78e6a82adfb13746d5177abc5d4c12d8 (patch)
tree7fe96d247043983edf5fbac4cc7add76d5d9f409 /src/plugins/platforms/xcb/qxcbdrag.h
parent922815a2a79e5f093cdf021b7d302bae91f3c22d (diff)
xcb: replace inefficient uses of QList with QVector
xcb atoms are uint32s, so a QList of them wastes 50% memory on 64-bit platforms. Other parts of the code already store xcb_atom_t's in QVector, so use QVector everywhere (also leads to less code expansion). Change-Id: Ib4afb35e499577a7509d04a18b830d9b31f6abd0 Reviewed-by: Friedemann Kleint <> Reviewed-by: Laszlo Agocs <>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbdrag.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbdrag.h b/src/plugins/platforms/xcb/qxcbdrag.h
index 183ccf904a..537898db48 100644
--- a/src/plugins/platforms/xcb/qxcbdrag.h
+++ b/src/plugins/platforms/xcb/qxcbdrag.h
@@ -126,7 +126,7 @@ private:
// the types in this drop. 100 is no good, but at least it's big.
enum { xdnd_max_type = 100 };
- QList<xcb_atom_t> xdnd_types;
+ QVector<xcb_atom_t> xdnd_types;
// timestamp from XdndPosition and XdndDroptime for retrieving the data
xcb_timestamp_t target_time;