[RFC,v1,14/17] ipa: libipa: agc_mean_luminance: controls(): Return const ref
diff mbox series

Message ID 20260703153819.1088752-15-barnabas.pocze@ideasonboard.com
State New
Headers show
Series
  • ipa: libipa: agc rework
Related show

Commit Message

Barnabás Pőcze July 3, 2026, 3:38 p.m. UTC
Now that no users use `std::unordered_map::merge()` to add the controls
to the control info map, there is no reason to return a copy.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
---
 src/ipa/libipa/agc_mean_luminance.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/ipa/libipa/agc_mean_luminance.h b/src/ipa/libipa/agc_mean_luminance.h
index 3378ec7faa..e7e2d8ad0d 100644
--- a/src/ipa/libipa/agc_mean_luminance.h
+++ b/src/ipa/libipa/agc_mean_luminance.h
@@ -78,7 +78,7 @@  public:
 		return exposureModeHelpers_;
 	}
 
-	ControlInfoMap::Map controls()
+	const ControlInfoMap::Map &controls() const
 	{
 		return controls_;
 	}