summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/libcamera/internal/camera_sensor.h2
1 files changed, 1 insertions, 1 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
{