mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
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:
parent
9a61a13466
commit
acf18e4265
22 changed files with 29 additions and 49 deletions
|
@ -860,7 +860,7 @@ std::unique_ptr<CameraMetadata> CameraDevice::getResultMetadata(int frame_number
|
|||
* Currently: 12 entries, 36 bytes
|
||||
*/
|
||||
std::unique_ptr<CameraMetadata> resultMetadata =
|
||||
utils::make_unique<CameraMetadata>(15, 50);
|
||||
std::make_unique<CameraMetadata>(15, 50);
|
||||
if (!resultMetadata->isValid()) {
|
||||
LOG(HAL, Error) << "Failed to allocate static metadata";
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue