Fix clang-tidy: protected method needs trailing underscore

This commit is contained in:
J. Nick Koston
2026-03-26 15:50:10 -10:00
parent 3388d420ec
commit 7513db9dcd
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ class Fan : public EntityBase {
/// Wire the Fan-owned preset modes pointer into the given traits object.
void wire_preset_modes_(FanTraits &traits) {
if (this->supported_preset_modes_) {
traits.set_supported_preset_modes(this->supported_preset_modes_);
traits.set_supported_preset_modes_(this->supported_preset_modes_);
}
}
+3 -1
View File
@@ -77,7 +77,9 @@ class FanTraits {
protected:
/// Set the preset modes pointer (only Fan::wire_preset_modes_() should call this).
void set_supported_preset_modes(const std::vector<const char *> *preset_modes) { this->preset_modes_ = preset_modes; }
void set_supported_preset_modes_(const std::vector<const char *> *preset_modes) {
this->preset_modes_ = preset_modes;
}
bool oscillation_{false};
bool speed_{false};