summaryrefslogtreecommitdiff
path: root/src/libcamera/utils.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-12 01:21:01 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-14 15:35:24 +0200
commit5cfbbcd20731a2160206cc1d935eac2c770376ae (patch)
tree817f2ef9c3ce6aa7fb2ace65466498c8f880c60b /src/libcamera/utils.cpp
parentbd4894d2596168b3435fb93b9e53dad84b2dcc7e (diff)
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>
Diffstat (limited to 'src/libcamera/utils.cpp')
-rw-r--r--src/libcamera/utils.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libcamera/utils.cpp b/src/libcamera/utils.cpp
index da85c9c2..e90375ae 100644
--- a/src/libcamera/utils.cpp
+++ b/src/libcamera/utils.cpp
@@ -32,11 +32,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
*