mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Change i++ to ++i
This commit is contained in:
parent
2480f2d06f
commit
34b7a147dc
41 changed files with 125 additions and 125 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue