Another loop to simplify things.

This commit is contained in:
Jason Felds
2013-04-28 16:31:26 -04:00
parent 066b4d08b8
commit 6533bd68ef
+2 -2
View File
@@ -134,8 +134,8 @@ static void InitNames()
g_mapNamesToString[MOUSE_WHEELUP] = "mousewheel up";
g_mapNamesToString[MOUSE_WHEELDOWN] = "mousewheel down";
FOREACHM( DeviceButton, RString, g_mapNamesToString, m )
g_mapStringToNames[m->second] = m->first;
for (std::pair<DeviceButton const &, RString const &> m : g_mapNamesToString)
g_mapStringToNames[m.second] = m.first;
}
/* Return a reversible representation of a DeviceButton. This is not affected