mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-21 17:40:54 +00:00
Merge pull request #257 from d-a-v/stringref
use more string references
This commit is contained in:
commit
85ccff0ee0
@ -859,7 +859,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)
|
||||
@ -869,7 +869,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)
|
||||
@ -879,7 +879,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)
|
||||
|
@ -176,9 +176,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);
|
||||
|
Loading…
Reference in New Issue
Block a user