libcamera: Standardize on 'const auto'
'const auto' and 'auto const' are interchangeable in C++. There are 446 occurrences of the former in the code base, and 67 occurrences of the latter. Standardize on the winner. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
This commit is contained in:
@@ -924,7 +924,7 @@ void IpaBase::applyControls(const ControlList &controls)
|
||||
} while (false);
|
||||
|
||||
/* Iterate over controls */
|
||||
for (auto const &ctrl : controls) {
|
||||
for (const auto &ctrl : controls) {
|
||||
LOG(IPARPI, Debug) << "Request ctrl: "
|
||||
<< controls::controls.at(ctrl.first)->name()
|
||||
<< " = " << ctrl.second.toString();
|
||||
@@ -1627,7 +1627,7 @@ void IpaBase::reportMetadata(unsigned int ipaContext)
|
||||
const HdrStatus &hdrStatus = agcStatus ? agcStatus->hdr : hdrStatus_;
|
||||
if (!hdrStatus.mode.empty() && hdrStatus.mode != "Off") {
|
||||
int32_t hdrMode = controls::HdrModeOff;
|
||||
for (auto const &[mode, name] : HdrModeTable) {
|
||||
for (const auto &[mode, name] : HdrModeTable) {
|
||||
if (hdrStatus.mode == name) {
|
||||
hdrMode = mode;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user