libcamera: Replace ARRAY_SIZE() with std::size()
C++17 has a std::size() function that returns the size of a C-style array. Use it instead of the custom ARRAY_SIZE macro. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -31,11 +31,6 @@ namespace libcamera {
|
||||
|
||||
namespace utils {
|
||||
|
||||
/**
|
||||
* \def ARRAY_SIZE(array)
|
||||
* \brief Determine the number of elements in the static array.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \brief Strip the directory prefix from the path
|
||||
* \param[in] path The path to process
|
||||
|
||||
Reference in New Issue
Block a user