[light] Modernize namespace declarations to C++17 syntax (#11986)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-11-18 21:56:23 -06:00
1 parent a72545639d
commit 45c994e4de
27 files changed
+54 -108

No files matched your search

+2 -4
View File
@@ -1,8 +1,7 @@
#include "esp_range_view.h"
#include "addressable_light.h"
namespace esphome {
namespace light {
namespace esphome::light {
int32_t HOT interpret_index(int32_t index, int32_t size) {
if (index < 0)
@@ -92,5 +91,4 @@ ESPRangeView &ESPRangeView::operator=(const ESPRangeView &rhs) { // NOLINT
ESPColorView ESPRangeIterator::operator*() const { return this->range_.parent_->get(this->i_); }
} // namespace light
} // namespace esphome
} // namespace esphome::light