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/serverlist.cpp | |
parent | 2480f2d06fe50295184a60d6659378f9a5d57065 (diff) | |
download | minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.gz minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.bz2 minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.zip |
Change i++ to ++i
Diffstat (limited to 'src/serverlist.cpp')
-rw-r--r-- | src/serverlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp index a33d1d6bf..6e79b55a4 100644 --- a/src/serverlist.cpp +++ b/src/serverlist.cpp @@ -165,7 +165,7 @@ const std::string serialize(const std::vector<ServerListSpec> &serverlist) std::string liststring; for (std::vector<ServerListSpec>::const_iterator it = serverlist.begin(); it != serverlist.end(); - it++) { + ++it) { liststring += "[server]\n"; liststring += (*it)["name"].asString() + '\n'; liststring += (*it)["address"].asString() + '\n'; @@ -182,7 +182,7 @@ const std::string serializeJson(const std::vector<ServerListSpec> &serverlist) Json::Value list(Json::arrayValue); for (std::vector<ServerListSpec>::const_iterator it = serverlist.begin(); it != serverlist.end(); - it++) { + ++it) { list.append(*it); } root["list"] = list; |