From 88052c9d3dbe22c5ce16ea03dadd00d85ee03b56 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 31 Dec 2015 16:30:14 +0100 Subject: Fix a couple of errors detected by coverity. --- plugingui/nativewindow_x11.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugingui/nativewindow_x11.h') diff --git a/plugingui/nativewindow_x11.h b/plugingui/nativewindow_x11.h index d7b3902..134ab6f 100644 --- a/plugingui/nativewindow_x11.h +++ b/plugingui/nativewindow_x11.h @@ -56,17 +56,17 @@ private: Event* translateXMessage(XEvent& xevent, bool peek = false); XImage* createImageFromBuffer(unsigned char* buf, int width, int height); - ::Window xwindow; - GC gc; - XImage* buffer; + ::Window xwindow{0}; + GC gc{0}; + XImage* buffer{nullptr}; Window& window; - int last_click; + int last_click{0}; - Display* display; - int screen; - Atom wmDeleteMessage; + Display* display{nullptr}; + int screen{0}; + Atom wmDeleteMessage{0}; }; } // GUI:: -- cgit v1.2.3