]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.cpp
Streamline iterators and loop constructs
[libs/gui.git] / source / input / keys.cpp
index 6be00ba591cbb0618733e0ba1533f867c16fe146..f1324a0a82ed338cf9548beb2f227bb4ef2dd4d1 100644 (file)
@@ -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;