summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/camera_sensor_helper.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-10-03 22:55:11 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-10-07 18:01:44 +0300
commitc4d39f0c31d968d874b8519af7458cbb34e3abe0 (patch)
tree2981f4e5c2199d51ccbd01bec549d95a13828c46 /src/ipa/libipa/camera_sensor_helper.h
parent7465ee8e0cc10babbebb2124b15abb1dd8f21983 (diff)
ipa: camera_sensor_helper: Make factory createInstance() function const
The CameraSensorHelperFactory::createInstance() function has no need to modify the factory instance. Make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/ipa/libipa/camera_sensor_helper.h')
-rw-r--r--src/ipa/libipa/camera_sensor_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h
index 7351fc7c..2042847f 100644
--- a/src/ipa/libipa/camera_sensor_helper.h
+++ b/src/ipa/libipa/camera_sensor_helper.h
@@ -70,7 +70,7 @@ public:
static std::vector<CameraSensorHelperFactory *> &factories();
protected:
- virtual CameraSensorHelper *createInstance() = 0;
+ virtual CameraSensorHelper *createInstance() const = 0;
private:
LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraSensorHelperFactory)
@@ -85,7 +85,7 @@ public: \
helper##Factory() : CameraSensorHelperFactory(name) {} \
\
private: \
- CameraSensorHelper *createInstance() \
+ CameraSensorHelper *createInstance() const \
{ \
return new helper(); \
} \