From 6f759413aff46d5b667cc156a08dc425df6f38d8 Mon Sep 17 00:00:00 2001 From: Avisheet Date: Thu, 22 Feb 2024 20:43:33 +0530 Subject: [PATCH] changes Signed-off-by: Avisheet --- src/Color.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Color.cc b/src/Color.cc index 6ca70c89..aa1ebca2 100644 --- a/src/Color.cc +++ b/src/Color.cc @@ -187,7 +187,7 @@ void Color::SetFromYUV(const float _y, const float _u, const float _v) } ////////////////////////////////////////////////// -float &Color::operator[](const unsigned int _index) +const float &Color::operator[](const unsigned int _index) { return (*static_cast(this))[_index]; }