ipa: libipa: agc_mean_luminance: Avoid unnecessary copies
`constraintModes()` and `exposureModeHelpers()` need not return copies of the internal objects, exposing const references is sufficient, so do that. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -53,12 +53,12 @@ public:
|
||||
void setLimits(utils::Duration minExposureTime, utils::Duration maxExposureTime,
|
||||
double minGain, double maxGain, std::vector<AgcConstraint> constraints);
|
||||
|
||||
std::map<int32_t, std::vector<AgcConstraint>> constraintModes()
|
||||
const std::map<int32_t, std::vector<AgcConstraint>> &constraintModes() const
|
||||
{
|
||||
return constraintModes_;
|
||||
}
|
||||
|
||||
std::map<int32_t, std::shared_ptr<ExposureModeHelper>> exposureModeHelpers()
|
||||
const std::map<int32_t, std::shared_ptr<ExposureModeHelper>> &exposureModeHelpers() const
|
||||
{
|
||||
return exposureModeHelpers_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user