From: Mikko Rasa Date: Tue, 2 Nov 2010 13:11:50 +0000 (+0000) Subject: Fix an uninitialized variable X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ad98112ecfb8898cff23e7a4c8dbd919135d7ae2;p=libs%2Fgui.git Fix an uninitialized variable Add a missing virtual keyword --- diff --git a/source/gbase/window.h b/source/gbase/window.h index c008fe8..9fa0734 100644 --- a/source/gbase/window.h +++ b/source/gbase/window.h @@ -49,7 +49,7 @@ public: private: void init(); public: - ~Window(); + virtual ~Window(); void set_title(const std::string &); void reconfigure(const WindowOptions &); diff --git a/source/input/keys.cpp b/source/input/keys.cpp index 15f729a..062b9be 100644 --- a/source/input/keys.cpp +++ b/source/input/keys.cpp @@ -148,7 +148,7 @@ unsigned key_to_sys(unsigned key) unsigned mod_from_sys(unsigned mod) { - unsigned result; + unsigned result = 0; for(unsigned i=0; i