From ac56530c2d3413b9fef71ab7b831dcba9e618789 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 11:34:17 +0100 Subject: [PATCH] Changed: Minor changes --- .../src/3d/driver/opengl/unix_event_emitter.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp b/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp index a16504ca0..4da55a009 100644 --- a/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp +++ b/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp @@ -37,11 +37,9 @@ static Atom XA_WM_DELETE_WINDOW = 0; namespace NLMISC { -CUnixEventEmitter::CUnixEventEmitter ():_dpy(NULL), _win(0), _driver(NULL) +CUnixEventEmitter::CUnixEventEmitter ():_dpy(NULL), _win(0), _im(NULL), _ic(NULL), _driver(NULL) { - _im = 0; - _ic = 0; - _SelectionOwned=false; + _SelectionOwned = false; } CUnixEventEmitter::~CUnixEventEmitter() @@ -513,7 +511,7 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server) if (keyCode) { TKey key = getKeyFromKeySym(k); - if(key == KeyNOKEY) + if (key == KeyNOKEY) key = getKeyFromKeycode(keyCode); // search for key in map @@ -526,12 +524,12 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server) _PressedKeys[key] = true; // don't send a control character when deleting - if (key == KeyDELETE) - c = 0; + if (key == KeyDELETE) c = 0; } Text[c] = '\0'; - if(c>0) + + if (c > 0) { #ifdef X_HAVE_UTF8_STRING ucstring ucstr;