]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.cpp
Include the matching header first in .cpp files
[libs/gui.git] / source / input / keys.cpp
index 6be00ba591cbb0618733e0ba1533f867c16fe146..9b3349ac443346ca6e6e5e5867a9c9434e74cc54 100644 (file)
@@ -1,7 +1,7 @@
+#include "keys.h"
 #include <map>
 #include <stdexcept>
 #include <msp/strings/format.h>
-#include "keys.h"
 
 using namespace std;
 
@@ -24,7 +24,7 @@ unsigned key_from_sys(unsigned code)
                init_done = true;
        }
 
-       map<unsigned, unsigned>::const_iterator i = reverse_map.find(code);
+       auto i = reverse_map.find(code);
        if(i!=reverse_map.end())
                return i->second;