mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 15:41:52 +00:00
save some bytes
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace esphome {
|
||||
namespace select {
|
||||
|
||||
void SelectTraits::set_options(std::initializer_list<const char *> options) { this->options_ = options; }
|
||||
void SelectTraits::set_options(const std::initializer_list<const char *> &options) { this->options_ = options; }
|
||||
|
||||
void SelectTraits::set_options(const FixedVector<const char *> &options) {
|
||||
this->options_.init(options.size());
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace select {
|
||||
|
||||
class SelectTraits {
|
||||
public:
|
||||
void set_options(std::initializer_list<const char *> options);
|
||||
void set_options(const std::initializer_list<const char *> &options);
|
||||
void set_options(const FixedVector<const char *> &options);
|
||||
const FixedVector<const char *> &get_options() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user