summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-04-02 09:16:59 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-04-06 20:25:48 +0300
commit1a9587b8f2de010026784c251179a64105f1fc91 (patch)
treea3250f87a4a0c5f9f88f5db5e80b6fc5e5d7fc4a /src
parent8f4238a39048b7047dfb83bbc3e835836748c213 (diff)
libcamera: camera_sensor: Drop const on the return value of sizes()
The sizes() function returns a value, not a reference. There's no need for it to be const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/camera_sensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index 8b4406fe..eaa2da6b 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -526,7 +526,7 @@ int CameraSensor::discoverAncillaryDevices()
*
* \return The supported frame sizes for \a mbusCode sorted in increasing order
*/
-const std::vector<Size> CameraSensor::sizes(unsigned int mbusCode) const
+std::vector<Size> CameraSensor::sizes(unsigned int mbusCode) const
{
std::vector<Size> sizes;