[select] Use const references to avoid unnecessary vector copies (#10741)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-09-16 09:16:26 +12:00
1 parent 612fb4cc3c
commit a723673dcc
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ void SelectCall::perform() {
auto *parent = this->parent_;
const auto *name = parent->get_name().c_str();
const auto &traits = parent->traits;
auto options = traits.get_options();
const auto &options = traits.get_options();
if (this->operation_ == SELECT_OP_NONE) {
ESP_LOGW(TAG, "'%s' - SelectCall performed without selecting an operation", name);