add const

This commit is contained in:
proddy
2026-05-16 15:45:14 +02:00
parent a1f24b38fa
commit 85a12bf581
35 changed files with 384 additions and 370 deletions

View File

@@ -146,11 +146,11 @@ class Mqtt {
mqtt_enabled_ = mqtt_enabled;
}
static std::string base() {
static const std::string & base() {
return mqtt_base_;
}
static std::string basename() {
static const std::string & basename() {
return mqtt_basename_;
}
@@ -227,7 +227,7 @@ class Mqtt {
ha_enabled_ = ha_enabled;
}
static std::string get_response() {
static const std::string & get_response() {
return lastresponse_;
}