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:
@@ -340,7 +340,7 @@ public:
|
||||
template<typename Period>
|
||||
double get() const
|
||||
{
|
||||
auto const c = std::chrono::duration_cast<std::chrono::duration<double, Period>>(*this);
|
||||
const auto c = std::chrono::duration_cast<std::chrono::duration<double, Period>>(*this);
|
||||
return c.count();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user