avoid string copy in api

This commit is contained in:
wellenvogel 2021-12-05 21:28:19 +01:00
parent 7b4ab178c2
commit 4f2c9ed1c2
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class GwApi{
double value=0;
bool valid=false;
BoatValue(){}
BoatValue(String n):name(n){
BoatValue(const String &n):name(n){
}
void setFormat(const String &format){
if (formatSet) return;