[select] Use const references to avoid unnecessary vector copies (#10741)
This commit is contained in:
1 parent
612fb4cc3c
commit
a723673dcc
2 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user