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:
Laurent Pinchart
2020-12-12 01:21:01 +02:00
parent bd4894d259
commit 5cfbbcd207
7 changed files with 16 additions and 22 deletions
-2
View File
@@ -17,8 +17,6 @@
#include <sys/time.h>
#include <vector>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#ifndef __DOXYGEN__
/* uClibc and uClibc-ng don't provide O_TMPFILE */