summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbkeyboard.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-04-02 15:01:56 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-05 05:22:58 +0200
commit6c8ecf1000a5defef40348bfda5527dabb57ecf4 (patch)
treeed5c4b47afec0a3b1c0514dec7b18b41a89cedcd /src/plugins/platforms/xcb/qxcbkeyboard.cpp
parent8d83562c1f4e37875d00761219968431e18a7704 (diff)
Consistently hide the parts that require xcb-xkb
It was inconsistent. This also solves a warning from Clang 3.4: error: private field 'vmod_masks' is not used [-Werror,-Wunused-private-field] Change-Id: I6be9f7ef56dffe6df2be3beb984c2d82d3808403 Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbkeyboard.cpp')
-rw-r--r--src/plugins/platforms/xcb/qxcbkeyboard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbkeyboard.cpp b/src/plugins/platforms/xcb/qxcbkeyboard.cpp
index 4ee1cb4305..d5c876624a 100644
--- a/src/plugins/platforms/xcb/qxcbkeyboard.cpp
+++ b/src/plugins/platforms/xcb/qxcbkeyboard.cpp
@@ -976,10 +976,10 @@ QXcbKeyboard::QXcbKeyboard(QXcbConnection *connection)
, xkb_context(0)
, xkb_keymap(0)
, xkb_state(0)
- , core_device_id(0)
{
memset(&xkb_names, 0, sizeof(xkb_names));
#ifndef QT_NO_XKB
+ core_device_id = 0;
if (connection->hasXKB()) {
updateVModMapping();
updateVModToRModMapping();