From 0974fd98737a405253daf3b249fe6bc4ef1a29bc Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Fri, 11 Jan 2019 12:14:32 +0900 Subject: [PATCH] Fixed String initialization not appropriate --- src/AutoConnectPage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AutoConnectPage.cpp b/src/AutoConnectPage.cpp index e8e0cd6..0260e85 100644 --- a/src/AutoConnectPage.cpp +++ b/src/AutoConnectPage.cpp @@ -831,7 +831,7 @@ String AutoConnect::_token_MENU_PRE(PageArgument& args) { } String AutoConnect::_token_MENU_AUX(PageArgument& args) { - String menuItem = ""; + String menuItem = String(""); if (_aux) menuItem = _aux->_injectMenu(args); return menuItem; @@ -1019,7 +1019,7 @@ String AutoConnect::_token_FREE_HEAP(PageArgument& args) { String AutoConnect::_token_LIST_SSID(PageArgument& args) { AC_UNUSED(args); - String ssidList = ""; + String ssidList = String(""); _hiddenSSIDCount = 0; WiFi.scanDelete(); int8_t nn = WiFi.scanNetworks(false, true); @@ -1090,7 +1090,7 @@ String AutoConnect::_token_BOOTURI(PageArgument& args) { else if (_apConfig.bootUri == AC_ONBOOTURI_HOME) return _apConfig.homeUri.length() > 0 ? _apConfig.homeUri : String("/"); else - return ""; + return String(""); }