mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 04:48:27 +02: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:
@@ -74,7 +74,7 @@ class Sim800LReceivedMessageTrigger : public Trigger<std::string, std::string> {
|
||||
public:
|
||||
explicit Sim800LReceivedMessageTrigger(Sim800LComponent *parent) {
|
||||
parent->add_on_sms_received_callback(
|
||||
[this](std::string message, std::string sender) { this->trigger(std::move(message), std::move(sender)); });
|
||||
[this](const std::string &message, const std::string &sender) { this->trigger(message, sender); });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user