diff options
author | Torbjörn Andersson | 2010-01-22 19:05:02 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-01-22 19:05:02 +0000 |
commit | 48184679086094cc5d6067de8c31a6823fc71732 (patch) | |
tree | dd366cf38861efbf803aa194e455577efcea8871 /backends/vkeybd | |
parent | 8f41cc0631914a6a743a1efa5275d8fa399b4f12 (diff) | |
download | scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.tar.gz scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.tar.bz2 scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.zip |
Silenced some more cppcheck warnings. Some of these may seem silly, but the way
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.
svn-id: r47443
Diffstat (limited to 'backends/vkeybd')
-rw-r--r-- | backends/vkeybd/image-map.cpp | 4 | ||||
-rw-r--r-- | backends/vkeybd/virtual-keyboard.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backends/vkeybd/image-map.cpp b/backends/vkeybd/image-map.cpp index b0aa42ba22..36d060e1d4 100644 --- a/backends/vkeybd/image-map.cpp +++ b/backends/vkeybd/image-map.cpp @@ -53,7 +53,7 @@ void ImageMap::removeArea(const String& id) { void ImageMap::removeAllAreas() { HashMap<String, Polygon*>::iterator it; - for (it = _areas.begin(); it != _areas.end(); it++) { + for (it = _areas.begin(); it != _areas.end(); ++it) { delete it->_value; } _areas.clear(); @@ -61,7 +61,7 @@ void ImageMap::removeAllAreas() { String ImageMap::findMapArea(int16 x, int16 y) { HashMap<String, Polygon*>::iterator it; - for (it = _areas.begin(); it != _areas.end(); it++) { + for (it = _areas.begin(); it != _areas.end(); ++it) { if (it->_value->contains(x, y)) return it->_key; } diff --git a/backends/vkeybd/virtual-keyboard.cpp b/backends/vkeybd/virtual-keyboard.cpp index 20709ad89f..ed78f9a67c 100644 --- a/backends/vkeybd/virtual-keyboard.cpp +++ b/backends/vkeybd/virtual-keyboard.cpp @@ -58,9 +58,9 @@ VirtualKeyboard::~VirtualKeyboard() { void VirtualKeyboard::deleteEvents() { ModeMap::iterator it_m; VKEventMap::iterator it_e; - for (it_m = _modes.begin(); it_m != _modes.end(); it_m++) { + for (it_m = _modes.begin(); it_m != _modes.end(); ++it_m) { VKEventMap *evt = &(it_m->_value.events); - for (it_e = evt->begin(); it_e != evt->end(); it_e++) + for (it_e = evt->begin(); it_e != evt->end(); ++it_e) delete it_e->_value; } } |