xcb: avoid use of statically-sized QList
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 16 Feb 2012 13:39:51 +0000 (14:39 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 17 Feb 2012 04:27:22 +0000 (05:27 +0100)
commit03cbcab18471c02878b0207e2a59976ffa76caa5
tree581f2ffb5b3d866b76a0415c61147e5308ca5301
parent48a366e6c87ac3572405d55a361f070e8b94902c
xcb: avoid use of statically-sized QList

Change the use of QList<QPair<>> to a simple C array of xcb_keycode_t*s.
This is possible since the number of elements in the container is
statically known.

I have not measured speedup; this is just preventing premature pessimisation.

Change-Id: I8855fc8a4e7ee840d8b7497ec4166074da7d8ea8
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/xcb/qxcbkeyboard.cpp