1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-09 23:02:23 +01:00

[api] Use C++17 nested namespace syntax (#9856)

This commit is contained in:
J. Nick Koston
2025-07-23 21:15:42 -10:00
committed by GitHub
parent 705ea4ebaa
commit c74f12be98
27 changed files with 62 additions and 124 deletions

View File

@@ -7,8 +7,7 @@
#ifdef HAS_PROTO_MESSAGE_DUMP
namespace esphome {
namespace api {
namespace esphome::api {
// Helper function to append a quoted string, handling empty StringRef
static inline void append_quoted_string(std::string &out, const StringRef &ref) {
@@ -2067,7 +2066,6 @@ void UpdateCommandRequest::dump_to(std::string &out) const {
}
#endif
} // namespace api
} // namespace esphome
} // namespace esphome::api
#endif // HAS_PROTO_MESSAGE_DUMP