mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 01:02:19 +01:00
Merge branch 'message_creator_ram' into integration
This commit is contained in:
@@ -564,7 +564,9 @@ class APIConnection : public APIServerConnection {
|
|||||||
bool has_tagged_string_ptr_() const { return (data_.tagged & 1) != 0; }
|
bool has_tagged_string_ptr_() const { return (data_.tagged & 1) != 0; }
|
||||||
|
|
||||||
// Get the actual string pointer (clears the tag bit)
|
// Get the actual string pointer (clears the tag bit)
|
||||||
std::string *get_string_ptr_() const { return reinterpret_cast<std::string *>(data_.tagged & ~uintptr_t(1)); }
|
std::string *get_string_ptr_() const {
|
||||||
|
return reinterpret_cast<std::string *>(data_.tagged & ~uintptr_t(1));
|
||||||
|
} // NOLINT(performance-no-int-to-ptr)
|
||||||
|
|
||||||
union {
|
union {
|
||||||
MessageCreatorPtr ptr;
|
MessageCreatorPtr ptr;
|
||||||
|
Reference in New Issue
Block a user