Fixed String initialization not appropriate

pull/41/head
Hieromon Ikasamo 6 years ago
parent b13b7db3d3
commit 0974fd9873
  1. 6
      src/AutoConnectPage.cpp

@ -831,7 +831,7 @@ String AutoConnect::_token_MENU_PRE(PageArgument& args) {
} }
String AutoConnect::_token_MENU_AUX(PageArgument& args) { String AutoConnect::_token_MENU_AUX(PageArgument& args) {
String menuItem = ""; String menuItem = String("");
if (_aux) if (_aux)
menuItem = _aux->_injectMenu(args); menuItem = _aux->_injectMenu(args);
return menuItem; return menuItem;
@ -1019,7 +1019,7 @@ String AutoConnect::_token_FREE_HEAP(PageArgument& args) {
String AutoConnect::_token_LIST_SSID(PageArgument& args) { String AutoConnect::_token_LIST_SSID(PageArgument& args) {
AC_UNUSED(args); AC_UNUSED(args);
String ssidList = ""; String ssidList = String("");
_hiddenSSIDCount = 0; _hiddenSSIDCount = 0;
WiFi.scanDelete(); WiFi.scanDelete();
int8_t nn = WiFi.scanNetworks(false, true); int8_t nn = WiFi.scanNetworks(false, true);
@ -1090,7 +1090,7 @@ String AutoConnect::_token_BOOTURI(PageArgument& args) {
else if (_apConfig.bootUri == AC_ONBOOTURI_HOME) else if (_apConfig.bootUri == AC_ONBOOTURI_HOME)
return _apConfig.homeUri.length() > 0 ? _apConfig.homeUri : String("/"); return _apConfig.homeUri.length() > 0 ? _apConfig.homeUri : String("/");
else else
return ""; return String("");
} }

Loading…
Cancel
Save