diff options
author | Eugene Sandulenko | 2009-05-10 17:18:59 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-05-10 17:18:59 +0000 |
commit | 2cc77639715214573637375655442d2208898a38 (patch) | |
tree | 787ccf95ac9c7fc1cdbe0df86a309d26deb973bd /backends/keymapper/hardware-key.h | |
parent | 7cd07d958193f591740c9e60225ae82833ac90c8 (diff) | |
download | scummvm-rg350-2cc77639715214573637375655442d2208898a38.tar.gz scummvm-rg350-2cc77639715214573637375655442d2208898a38.tar.bz2 scummvm-rg350-2cc77639715214573637375655442d2208898a38.zip |
whitespaces
svn-id: r40424
Diffstat (limited to 'backends/keymapper/hardware-key.h')
-rw-r--r-- | backends/keymapper/hardware-key.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/keymapper/hardware-key.h b/backends/keymapper/hardware-key.h index f42076f75b..d83d3d9073 100644 --- a/backends/keymapper/hardware-key.h +++ b/backends/keymapper/hardware-key.h @@ -75,6 +75,7 @@ public: virtual ~HardwareKeySet() { List<const HardwareKey*>::const_iterator it; + for (it = _keys.begin(); it != _keys.end(); it++) delete *it; } @@ -86,6 +87,7 @@ public: const HardwareKey *findHardwareKey(const char *id) const { List<const HardwareKey*>::const_iterator it; + for (it = _keys.begin(); it != _keys.end(); it++) { if (strncmp((*it)->hwKeyId, id, HWKEY_ID_SIZE) == 0) return (*it); @@ -95,6 +97,7 @@ public: const HardwareKey *findHardwareKey(const KeyState& keystate) const { List<const HardwareKey*>::const_iterator it; + for (it = _keys.begin(); it != _keys.end(); it++) { if ((*it)->key == keystate) return (*it); @@ -115,6 +118,7 @@ private: void checkForKey(HardwareKey *key) { List<const HardwareKey*>::iterator it; + for (it = _keys.begin(); it != _keys.end(); it++) { if (strncmp((*it)->hwKeyId, key->hwKeyId, HWKEY_ID_SIZE) == 0) error("Error adding HardwareKey '%s' - id of %s already in use!", key->description.c_str(), key->hwKeyId); |