From 922815a2a79e5f093cdf021b7d302bae91f3c22d Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 5 Oct 2013 03:47:29 +0200 Subject: [PATCH] xcb: replace a use of an inefficient QList with QVector The Transaction type is larger than a void*, so better use a vector to hold them. Change-Id: Ie2c00d053f67addbce6fd8107f659c56ccdd37aa Reviewed-by: Friedemann Kleint Reviewed-by: Laszlo Agocs Reviewed-by: Thiago Macieira --- src/plugins/platforms/xcb/qxcbdrag.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/platforms/xcb/qxcbdrag.h b/src/plugins/platforms/xcb/qxcbdrag.h index 5648f70d9e..183ccf904a 100644 --- a/src/plugins/platforms/xcb/qxcbdrag.h +++ b/src/plugins/platforms/xcb/qxcbdrag.h @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include @@ -160,7 +159,7 @@ private: QDrag *drag; QTime time; }; - QList transactions; + QVector transactions; int transaction_expiry_timer; void restartDropExpiryTimer();