mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Replace std::move() with const references where possible (#2421)
* Replace std::move() with const references where possible * Fix formatting
This commit is contained in:
@@ -19,7 +19,7 @@ class TemplateSelect : public select::Select, public PollingComponent {
|
||||
|
||||
Trigger<std::string> *get_set_trigger() const { return this->set_trigger_; }
|
||||
void set_optimistic(bool optimistic) { this->optimistic_ = optimistic; }
|
||||
void set_initial_option(std::string initial_option) { this->initial_option_ = std::move(initial_option); }
|
||||
void set_initial_option(const std::string &initial_option) { this->initial_option_ = initial_option; }
|
||||
void set_restore_value(bool restore_value) { this->restore_value_ = restore_value; }
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user