]> git.tdb.fi Git - libs/gui.git/commitdiff
Fix an uninitialized variable
authorMikko Rasa <tdb@tdb.fi>
Tue, 2 Nov 2010 13:11:50 +0000 (13:11 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 2 Nov 2010 13:11:50 +0000 (13:11 +0000)
Add a missing virtual keyword

source/gbase/window.h
source/input/keys.cpp

index c008fe8353d86b8a41921f2ab012252e33f33919..9fa0734ae4675cbcf196a491548810c2abdb6fff 100644 (file)
@@ -49,7 +49,7 @@ public:
 private:
        void init();
 public:
-       ~Window();
+       virtual ~Window();
 
        void set_title(const std::string &);
        void reconfigure(const WindowOptions &);
index 15f729abe16652ea0f5304e540e9d39333791f76..062b9be8e6b74ef9887901ba2859c45aba0ed9db 100644 (file)
@@ -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<N_MODS_; ++i)
                if(mod&modmap[i])
                        result|=1<<i;