From 4f2c9ed1c2c73d71424aa17d4583f177c22cbe7f Mon Sep 17 00:00:00 2001 From: wellenvogel Date: Sun, 5 Dec 2021 21:28:19 +0100 Subject: [PATCH] avoid string copy in api --- lib/api/GwApi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/GwApi.h b/lib/api/GwApi.h index 5de6de5..591844b 100644 --- a/lib/api/GwApi.h +++ b/lib/api/GwApi.h @@ -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;