mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Merge branch 'idf_webserver_guard' into integration
This commit is contained in:
		| @@ -39,7 +39,10 @@ static const char *const TAG = "web_server_idf"; | |||||||
|  |  | ||||||
| // Global instance to avoid guard variable (saves 8 bytes) | // Global instance to avoid guard variable (saves 8 bytes) | ||||||
| // This is initialized at program startup before any threads | // This is initialized at program startup before any threads | ||||||
| static DefaultHeaders default_headers_instance; | namespace { | ||||||
|  | // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) | ||||||
|  | DefaultHeaders default_headers_instance; | ||||||
|  | }  // namespace | ||||||
|  |  | ||||||
| DefaultHeaders &DefaultHeaders::Instance() { return default_headers_instance; } | DefaultHeaders &DefaultHeaders::Instance() { return default_headers_instance; } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user