From 468cf81a610947355f4273fdc4ae99cdc31515ac Mon Sep 17 00:00:00 2001 From: Spucknapf Date: Tue, 17 Aug 2021 16:03:46 +0200 Subject: [PATCH] fix dangling reference in HueEntertainment --- .../PhilipsHueEntertainmentController.cpp | 2 +- .../PhilipsHueController/PhilipsHueEntertainmentController.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.cpp b/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.cpp index a4d1a4f95..34bfa6275 100644 --- a/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.cpp +++ b/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.cpp @@ -6,7 +6,7 @@ #include "PhilipsHueEntertainmentController.h" -PhilipsHueEntertainmentController::PhilipsHueEntertainmentController(hueplusplus::Bridge& bridge_ptr, hueplusplus::Group& group_ptr):bridge(bridge_ptr),group(group_ptr) +PhilipsHueEntertainmentController::PhilipsHueEntertainmentController(hueplusplus::Bridge& bridge_ptr, hueplusplus::Group group_ptr):bridge(bridge_ptr),group(group_ptr) { /*-------------------------------------------------*\ | Fill in location string with bridge IP | diff --git a/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.h b/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.h index 6289c02db..8bbef2c4c 100644 --- a/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.h +++ b/Controllers/PhilipsHueController/PhilipsHueEntertainmentController.h @@ -20,7 +20,7 @@ class PhilipsHueEntertainmentController { public: - PhilipsHueEntertainmentController(hueplusplus::Bridge& bridge_ptr, hueplusplus::Group& group_ptr); + PhilipsHueEntertainmentController(hueplusplus::Bridge& bridge_ptr, hueplusplus::Group group_ptr); ~PhilipsHueEntertainmentController(); std::string GetLocation(); @@ -34,7 +34,7 @@ public: private: hueplusplus::Bridge& bridge; - hueplusplus::Group& group; + hueplusplus::Group group; hueplusplus::EntertainmentMode* entertainment; std::string location;