Readded NOLINT.

This commit is contained in:
Dieter Tschanz 2024-10-20 18:50:33 +02:00
parent b9bb4a7a65
commit 761b0bf2dc
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
namespace esphome {
namespace camera {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
Camera *Camera::global_camera = nullptr;
Camera::Camera() { global_camera = this; }

View file

@ -69,6 +69,7 @@ class Camera : public EntityBase {
virtual void stop_stream(CameraRequester requester) = 0;
virtual ~Camera() {}
/// The singleton instance of the camera implementation.
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
static Camera *global_camera;
};