[api] Use const char* pointers for light effects to eliminate heap allocations (#12090)

This commit is contained in:
J. Nick Koston
2025-11-25 08:17:53 +00:00
committed by GitHub
parent 18c97a08c3
commit 697c5f424e
5 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -924,7 +924,7 @@ void ListEntitiesLightResponse::dump_to(std::string &out) const {
}
dump_field(out, "min_mireds", this->min_mireds);
dump_field(out, "max_mireds", this->max_mireds);
for (const auto &it : this->effects) {
for (const auto &it : *this->effects) {
dump_field(out, "effects", it, 4);
}
dump_field(out, "disabled_by_default", this->disabled_by_default);