mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 14:38:10 +01:00
[code-quality] weikai.h (#7601)
This commit is contained in:
parent
4101d5dad1
commit
7dbda12008
1 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ class WeikaiComponent : public Component {
|
||||||
|
|
||||||
/// @brief store the name for the component
|
/// @brief store the name for the component
|
||||||
/// @param name the name as defined by the python code generator
|
/// @param name the name as defined by the python code generator
|
||||||
void set_name(std::string name) { this->name_ = std::move(name); }
|
void set_name(std::string &&name) { this->name_ = std::move(name); }
|
||||||
|
|
||||||
/// @brief Get the name of the component
|
/// @brief Get the name of the component
|
||||||
/// @return the name
|
/// @return the name
|
||||||
|
@ -308,7 +308,7 @@ class WeikaiChannel : public uart::UARTComponent {
|
||||||
|
|
||||||
/// @brief The name as generated by the Python code generator
|
/// @brief The name as generated by the Python code generator
|
||||||
/// @param name of the channel
|
/// @param name of the channel
|
||||||
void set_channel_name(std::string name) { this->name_ = std::move(name); }
|
void set_channel_name(std::string &&name) { this->name_ = std::move(name); }
|
||||||
|
|
||||||
/// @brief Get the channel name
|
/// @brief Get the channel name
|
||||||
/// @return the name
|
/// @return the name
|
||||||
|
|
Loading…
Reference in a new issue