From 2c01bc5795c19adbe01006f23fcb12c482e09293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vikstr=C3=B6m?= Date: Wed, 9 Apr 2025 15:22:40 +0200 Subject: [PATCH] Fix clang-tidy --- esphome/components/devices/devices.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/devices/devices.h b/esphome/components/devices/devices.h index a9e8f311fa..96e3b84887 100644 --- a/esphome/components/devices/devices.h +++ b/esphome/components/devices/devices.h @@ -5,10 +5,10 @@ namespace devices { class SubDevice { public: - void set_name(std::string name) { name_ = name; } - std::string get_name(void) { return name_; } - void set_area(std::string area) { area_ = area; } - std::string get_area(void) { return area_; } + void set_name(std::string name) { name_ = std::move(name); } + std::string get_name() { return name_; } + void set_area(std::string area) { area_ = std::move(area); } + std::string get_area() { return area_; } protected: // std::string id_ = "";