xcb: use default member initialization in struct

... for better localization. This is not possible in C, but in
C++ a struct has the same features as a class. Thus, use default
member initialization feature (available since C++11).

Change-Id: I91522c3a4fe4270c37bb6e85fddeb5970a847352
Reviewed-by: Alexander Volkov <a.volkov@rusbitech.ru>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Gatis Paeglis 2017-07-13 14:47:55 +02:00
parent f948f96e91
commit 0cd54e3cec
2 changed files with 1 additions and 4 deletions

View File

@ -653,7 +653,7 @@ private:
QHash<int, TouchDeviceData> m_touchDevices;
#ifdef XCB_USE_XINPUT22
struct StartSystemResizeInfo {
xcb_window_t window;
xcb_window_t window = XCB_NONE;
uint16_t deviceid;
uint32_t pointid;
Qt::Corner corner;

View File

@ -78,9 +78,6 @@ void QXcbConnection::initializeXInput2()
// X server's supported version.
qCDebug(lcQpaXInput, "Using XInput version %d.%d", xiMajor, m_xi2Minor);
m_xi2Enabled = true;
#ifdef XCB_USE_XINPUT22
m_startSystemResizeInfo.window = XCB_NONE;
#endif
xi2SetupDevices();
break;
case BadRequest: // Must be an X server with XInput 1