From 34b7a147dcf9831f3b4d81599c473ba01ff5da00 Mon Sep 17 00:00:00 2001 From: David Jones Date: Tue, 25 Aug 2015 21:23:05 +0100 Subject: Change i++ to ++i --- src/game.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 11e868a80..0e26493a2 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -375,7 +375,7 @@ PointedThing getPointedThing(Client *client, v3f player_position, for (std::vector::const_iterator i = boxes.begin(); - i != boxes.end(); i++) { + i != boxes.end(); ++i) { aabb3f box = *i; box.MinEdge += npf; box.MaxEdge += npf; @@ -420,7 +420,7 @@ PointedThing getPointedThing(Client *client, v3f player_position, if (!g_settings->getBool("enable_node_highlighting")) { for (std::vector::const_iterator i2 = boxes.begin(); - i2 != boxes.end(); i2++) { + i2 != boxes.end(); ++i2) { aabb3f box = *i2; box.MinEdge += npf + v3f(-d, -d, -d) - intToFloat(camera_offset, BS); box.MaxEdge += npf + v3f(d, d, d) - intToFloat(camera_offset, BS); @@ -514,11 +514,11 @@ public: std::map m_meta; for (std::vector::const_iterator k = m_log.begin(); - k != m_log.end(); k++) { + k != m_log.end(); ++k) { const Piece &piece = *k; for (Profiler::GraphValues::const_iterator i = piece.values.begin(); - i != piece.values.end(); i++) { + i != piece.values.end(); ++i) { const std::string &id = i->first; const float &value = i->second; std::map::iterator j = @@ -550,7 +550,7 @@ public: u32 next_color_i = 0; for (std::map::iterator i = m_meta.begin(); - i != m_meta.end(); i++) { + i != m_meta.end(); ++i) { Meta &meta = i->second; video::SColor color(255, 200, 200, 200); @@ -566,7 +566,7 @@ public: s32 meta_i = 0; for (std::map::const_iterator i = m_meta.begin(); - i != m_meta.end(); i++) { + i != m_meta.end(); ++i) { const std::string &id = i->first; const Meta &meta = i->second; s32 x = x_left; @@ -602,7 +602,7 @@ public: bool lastscaledvalue_exists = false; for (std::vector::const_iterator j = m_log.begin(); - j != m_log.end(); j++) { + j != m_log.end(); ++j) { const Piece &piece = *j; float value = 0; bool value_exists = false; -- cgit v1.2.3