mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 00:19:44 +03:00
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>
This commit is contained in:
parent
7465ee8e0c
commit
c4d39f0c31
2 changed files with 5 additions and 5 deletions
|
@ -254,10 +254,10 @@ CameraSensorHelperFactory::CameraSensorHelperFactory(const std::string name)
|
|||
*/
|
||||
std::unique_ptr<CameraSensorHelper> CameraSensorHelperFactory::create(const std::string &name)
|
||||
{
|
||||
std::vector<CameraSensorHelperFactory *> &factories =
|
||||
const std::vector<CameraSensorHelperFactory *> &factories =
|
||||
CameraSensorHelperFactory::factories();
|
||||
|
||||
for (CameraSensorHelperFactory *factory : factories) {
|
||||
for (const CameraSensorHelperFactory *factory : factories) {
|
||||
if (name != factory->name_)
|
||||
continue;
|
||||
|
||||
|
@ -299,7 +299,7 @@ std::vector<CameraSensorHelperFactory *> &CameraSensorHelperFactory::factories()
|
|||
}
|
||||
|
||||
/**
|
||||
* \fn CameraSensorHelperFactory::createInstance()
|
||||
* \fn CameraSensorHelperFactory::createInstance() const
|
||||
* \brief Create an instance of the CameraSensorHelper corresponding to the
|
||||
* factory
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue