mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Fix some bad "for (auto x : y)" usage
This commit is contained in:
1 parent
62e4b2852c
commit
dbe6ec80a0
17 files changed
+31
-27
No files matched your search
+2
-2
@@ -119,7 +119,7 @@ std::string InfraDNSConfig::ToString() const {
|
||||
}
|
||||
if (!fixedDNS.empty()) {
|
||||
w.C("Fixed DNS").endl();
|
||||
for (auto iter : fixedDNS) {
|
||||
for (const auto &iter : fixedDNS) {
|
||||
w.F("%s -> %s", iter.first.c_str(), iter.second.c_str()).endl();
|
||||
}
|
||||
}
|
||||
@@ -290,7 +290,7 @@ bool LoadDNSForGameID(std::string_view gameID, std::string_view jsonStr, InfraDN
|
||||
dns->connectAdHocForGrouping = game.getBool("connect_adhoc_for_grouping", dns->connectAdHocForGrouping);
|
||||
if (game.hasChild("domains", JSON_OBJECT)) {
|
||||
const JsonGet domains = game.getDict("domains");
|
||||
for (auto iter : domains.value_) {
|
||||
for (const auto &iter : domains.value_) {
|
||||
std::string domain = std::string(iter->key);
|
||||
std::string ipAddr = std::string(iter->value.toString());
|
||||
dns->fixedDNS[domain] = ipAddr;
|
||||
|
||||
Reference in new issue
Block a user