From a15c02478ae3de38abc475f9ef602a677922a397 Mon Sep 17 00:00:00 2001 From: oarcher Date: Fri, 31 May 2024 09:58:39 +0200 Subject: [PATCH] clang --- esphome/components/modem/modem_component.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/modem/modem_component.h b/esphome/components/modem/modem_component.h index 520b61143b..848c966692 100644 --- a/esphome/components/modem/modem_component.h +++ b/esphome/components/modem/modem_component.h @@ -47,10 +47,10 @@ class ModemComponent : public Component { void set_use_address(const std::string &use_address); void set_rx_pin(gpio_num_t rx_pin) { this->rx_pin_ = rx_pin; } void set_tx_pin(gpio_num_t tx_pin) { this->tx_pin_ = tx_pin; } - void set_username(const std::string username) { this->username_ = std::move(username); } - void set_password(const std::string password) { this->password_ = std::move(password); } - void set_pin_code(const std::string pin_code) { this->pin_code_ = std::move(pin_code); } - void set_apn(const std::string apn) { this->apn_ = std::move(apn); } + void set_username(const std::string &username) { this->username_ = std::move(username); } + void set_password(const std::string &password) { this->password_ = std::move(password); } + void set_pin_code(const std::string &pin_code) { this->pin_code_ = std::move(pin_code); } + void set_apn(const std::string &apn) { this->apn_ = std::move(apn); } void set_model(const std::string &model) { this->model_ = this->modem_model_map_.count(model) ? modem_model_map_[model] : ModemModel::UNKNOWN; }