summaryrefslogtreecommitdiff
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
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>
-rw-r--r--include/libcamera/internal/camera_sensor.h2
-rw-r--r--src/libcamera/camera_sensor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index 7fb4eded..b9f4d786 100644
--- a/include/libcamera/internal/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -43,7 +43,7 @@ public:
const std::string &id() const { return id_; }
const MediaEntity *entity() const { return entity_; }
const std::vector<unsigned int> &mbusCodes() const { return mbusCodes_; }
- const std::vector<Size> sizes(unsigned int mbusCode) const;
+ std::vector<Size> sizes(unsigned int mbusCode) const;
Size resolution() const;
const std::vector<controls::draft::TestPatternModeEnum> &testPatternModes() const
{
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;