From b5a3c0be211c91dc4797655fbb272ed97b0545b2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 30 Nov 2025 22:47:40 -0600 Subject: [PATCH] [core] Use StringRef for get_comment and get_compilation_time to avoid allocations --- esphome/core/helpers.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 32e8cc6fa1c..9bbc771fb8d 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -15,6 +15,7 @@ #include #include "esphome/core/optional.h" +#include "esphome/core/string_ref.h" #ifdef USE_ESP8266 #include @@ -47,9 +48,6 @@ namespace esphome { -// Forward declaration to avoid circular dependency with string_ref.h -class StringRef; - /// @name STL backports ///@{