diff options
author | David Jones <david@gogledd.cymru> | 2015-08-25 21:23:05 +0100 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-08-25 18:33:52 -0400 |
commit | 34b7a147dcf9831f3b4d81599c473ba01ff5da00 (patch) | |
tree | e7a95bf333d782ebde897b25070c5d997174e2f5 /src/craftdef.cpp | |
parent | 2480f2d06fe50295184a60d6659378f9a5d57065 (diff) | |
download | minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.gz minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.bz2 minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.zip |
Change i++ to ++i
Diffstat (limited to 'src/craftdef.cpp')
-rw-r--r-- | src/craftdef.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/craftdef.cpp b/src/craftdef.cpp index 409481e64..a39bfb37d 100644 --- a/src/craftdef.cpp +++ b/src/craftdef.cpp @@ -964,10 +964,10 @@ public: { std::ostringstream os(std::ios::binary); os << "Crafting definitions:\n"; - for (int type = 0; type <= craft_hash_type_max; type++) { + for (int type = 0; type <= craft_hash_type_max; ++type) { for (std::map<u64, std::vector<CraftDefinition*> >::const_iterator it = (m_craft_defs[type]).begin(); - it != (m_craft_defs[type]).end(); it++) { + it != (m_craft_defs[type]).end(); ++it) { for (std::vector<CraftDefinition*>::size_type i = 0; i < it->second.size(); i++) { os << "type " << type @@ -992,10 +992,10 @@ public: } virtual void clear() { - for (int type = 0; type <= craft_hash_type_max; type++) { + for (int type = 0; type <= craft_hash_type_max; ++type) { for (std::map<u64, std::vector<CraftDefinition*> >::iterator it = m_craft_defs[type].begin(); - it != m_craft_defs[type].end(); it++) { + it != m_craft_defs[type].end(); ++it) { for (std::vector<CraftDefinition*>::iterator iit = it->second.begin(); iit != it->second.end(); ++iit) { |