summaryrefslogtreecommitdiff
path: root/src/ipa/libipa
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:02:06 +0300
commitb4a3e6ade7864620e453ad81595407aac1979dee (patch)
tree5662e02e3a1442708a29642f74082568bce8efac /src/ipa/libipa
parentc4d39f0c31d968d874b8519af7458cbb34e3abe0 (diff)
ipa: camera_sensor_helper: Make registerType() and createInstance() private
The CameraSensorHelperFactory registerType() and createInstance() functions are called by the CameraSensorHelperFactory class only. Make them private. 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')
-rw-r--r--src/ipa/libipa/camera_sensor_helper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h
index 2042847f..410156ef 100644
--- a/src/ipa/libipa/camera_sensor_helper.h
+++ b/src/ipa/libipa/camera_sensor_helper.h
@@ -66,15 +66,15 @@ public:
static std::unique_ptr<CameraSensorHelper> create(const std::string &name);
- static void registerType(CameraSensorHelperFactory *factory);
static std::vector<CameraSensorHelperFactory *> &factories();
-protected:
- virtual CameraSensorHelper *createInstance() const = 0;
-
private:
LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraSensorHelperFactory)
+ static void registerType(CameraSensorHelperFactory *factory);
+
+ virtual CameraSensorHelper *createInstance() const = 0;
+
std::string name_;
};