From 98a7932dee7ea241bc57122e94e0a28089e30b2e Mon Sep 17 00:00:00 2001 From: Proddy Date: Tue, 3 Aug 2021 13:23:09 +0200 Subject: [PATCH] optimizations --- src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.cpp b/src/system.cpp index bb1ab41ff..bd03d2790 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -662,7 +662,7 @@ void System::show_users(uuid::console::Shell & shell) { #ifndef EMSESP_STANDALONE EMSESP::esp8266React.getSecuritySettingsService()->read([&](SecuritySettings & securitySettings) { - for (User user : securitySettings.users) { + for (const User & user : securitySettings.users) { shell.printfln(F(" username: %s, password: %s, is_admin: %s"), user.username.c_str(), user.password.c_str(), user.admin ? F("yes") : F("no")); } });