summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/camera_sensor_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/libipa/camera_sensor_helper.h')
-rw-r--r--src/ipa/libipa/camera_sensor_helper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h
index 410156ef..21ee43cc 100644
--- a/src/ipa/libipa/camera_sensor_helper.h
+++ b/src/ipa/libipa/camera_sensor_helper.h
@@ -73,7 +73,7 @@ private:
static void registerType(CameraSensorHelperFactory *factory);
- virtual CameraSensorHelper *createInstance() const = 0;
+ virtual std::unique_ptr<CameraSensorHelper> createInstance() const = 0;
std::string name_;
};
@@ -85,9 +85,9 @@ public: \
helper##Factory() : CameraSensorHelperFactory(name) {} \
\
private: \
- CameraSensorHelper *createInstance() const \
+ std::unique_ptr<CameraSensorHelper> createInstance() const \
{ \
- return new helper(); \
+ return std::make_unique<helper>(); \
} \
}; \
static helper##Factory global_##helper##Factory;