mirror of
https://github.com/esphome/esphome.git
synced 2025-09-13 16:52:18 +01:00
lint
This commit is contained in:
@@ -565,7 +565,8 @@ class APIConnection : public APIServerConnection {
|
|||||||
|
|
||||||
// Get the actual string pointer (clears the tag bit)
|
// Get the actual string pointer (clears the tag bit)
|
||||||
std::string *get_string_ptr_() const {
|
std::string *get_string_ptr_() const {
|
||||||
return reinterpret_cast<std::string *>(data_.tagged & ~uintptr_t(1)); // NOLINT(performance-no-int-to-ptr)
|
// NOLINTNEXTLINE(performance-no-int-to-ptr)
|
||||||
|
return reinterpret_cast<std::string *>(data_.tagged & ~uintptr_t(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
union {
|
union {
|
||||||
|
Reference in New Issue
Block a user