libcamera: file: Turn MapFlag and OpenModeFlag into enum class
Add type safety by turning the MapFlag and OpenModeFlag enum into enum class. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
91d06ae2fc
commit
6a8582dc20
6 changed files with 46 additions and 43 deletions
|
@ -62,7 +62,7 @@ int IPAVimc::init(const IPASettings &settings)
|
|||
<< settings.configurationFile;
|
||||
|
||||
File conf(settings.configurationFile);
|
||||
if (!conf.open(File::ReadOnly)) {
|
||||
if (!conf.open(File::OpenModeFlag::ReadOnly)) {
|
||||
LOG(IPAVimc, Error) << "Failed to open configuration file";
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue