libcamera: Switch from utils::make_unique to std::make_unique
Now that we're using C++-14, drop utils::make_unique for std::make_unique. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
|
||||
#include "log.h"
|
||||
#include "media_device.h"
|
||||
#include "utils.h"
|
||||
|
||||
/**
|
||||
* \file device_enumerator.h
|
||||
@@ -145,7 +144,7 @@ std::unique_ptr<DeviceEnumerator> DeviceEnumerator::create()
|
||||
std::unique_ptr<DeviceEnumerator> enumerator;
|
||||
|
||||
#ifdef HAVE_LIBUDEV
|
||||
enumerator = utils::make_unique<DeviceEnumeratorUdev>();
|
||||
enumerator = std::make_unique<DeviceEnumeratorUdev>();
|
||||
if (!enumerator->init())
|
||||
return enumerator;
|
||||
#endif
|
||||
@@ -154,7 +153,7 @@ std::unique_ptr<DeviceEnumerator> DeviceEnumerator::create()
|
||||
* Either udev is not available or udev initialization failed. Fall back
|
||||
* on the sysfs enumerator.
|
||||
*/
|
||||
enumerator = utils::make_unique<DeviceEnumeratorSysfs>();
|
||||
enumerator = std::make_unique<DeviceEnumeratorSysfs>();
|
||||
if (!enumerator->init())
|
||||
return enumerator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user