1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-21 17:40:54 +00:00

use more string references

This commit is contained in:
David Gauchard 2023-09-22 22:37:50 +02:00
parent 8a3865e42e
commit ae5b6d5c0a
2 changed files with 6 additions and 6 deletions

View File

@ -916,7 +916,7 @@ void ESPUIClass::updateControl(Control* control, int)
NotifyClients(ClientUpdateType_t::UpdateNeeded);
}
void ESPUIClass::setPanelStyle(uint16_t id, String style, int clientId)
void ESPUIClass::setPanelStyle(uint16_t id, const String& style, int clientId)
{
Control* control = getControl(id);
if (control)
@ -926,7 +926,7 @@ void ESPUIClass::setPanelStyle(uint16_t id, String style, int clientId)
}
}
void ESPUIClass::setElementStyle(uint16_t id, String style, int clientId)
void ESPUIClass::setElementStyle(uint16_t id, const String& style, int clientId)
{
Control* control = getControl(id);
if (control)
@ -936,7 +936,7 @@ void ESPUIClass::setElementStyle(uint16_t id, String style, int clientId)
}
}
void ESPUIClass::setInputType(uint16_t id, String type, int clientId)
void ESPUIClass::setInputType(uint16_t id, const String& type, int clientId)
{
Control* control = getControl(id);
if (control)

View File

@ -194,9 +194,9 @@ public:
void clearGraph(uint16_t id, int clientId = -1);
void addGraphPoint(uint16_t id, int nValue, int clientId = -1);
void setPanelStyle(uint16_t id, String style, int clientId = -1);
void setElementStyle(uint16_t id, String style, int clientId = -1);
void setInputType(uint16_t id, String type, int clientId = -1);
void setPanelStyle(uint16_t id, const String& style, int clientId = -1);
void setElementStyle(uint16_t id, const String& style, int clientId = -1);
void setInputType(uint16_t id, const String& type, int clientId = -1);
void setPanelWide(uint16_t id, bool wide);
void setVertical(uint16_t id, bool vert = true);