1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Enable readability-const-return-type check (#3099)

This commit is contained in:
Oxan van Leeuwen
2022-01-23 08:28:00 +01:00
committed by GitHub
parent a6a9ebfde2
commit 7854522792
6 changed files with 10 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ class SelectCall {
class SelectTraits {
public:
void set_options(std::vector<std::string> options) { this->options_ = std::move(options); }
const std::vector<std::string> get_options() const { return this->options_; }
std::vector<std::string> get_options() const { return this->options_; }
protected:
std::vector<std::string> options_;