Warning fixes

This commit is contained in:
Henrik Rydgård
2024-11-06 11:59:34 +01:00
parent 447a78e453
commit 55aa1ff66e
3 changed files with 9 additions and 4 deletions
@@ -43,7 +43,7 @@ void WebSocketBroadcastConfigGet(DebuggerRequest & req) {
json.pushDict("disallowed");
for (const auto[name, status] : disallowed_config) {
for (const auto &[name, status] : disallowed_config) {
if (status)
json.writeBool(name, true);
}
@@ -97,7 +97,7 @@ void WebSocketBroadcastConfigSet(DebuggerRequest & req) {
json.pushDict("disallowed");
for (const auto[name, status] : disallowed_config) {
for (const auto &[name, status] : disallowed_config) {
if (status)
json.writeBool(name, true);
}