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
|
@ -10,7 +10,6 @@
|
|||
#include <errno.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "utils.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
|
@ -81,7 +80,7 @@ void V4L2Camera::requestComplete(Request *request)
|
|||
bufferLock_.lock();
|
||||
FrameBuffer *buffer = request->buffers().begin()->second;
|
||||
std::unique_ptr<Buffer> metadata =
|
||||
utils::make_unique<Buffer>(request->cookie(), buffer->metadata());
|
||||
std::make_unique<Buffer>(request->cookie(), buffer->metadata());
|
||||
completedBuffers_.push_back(std::move(metadata));
|
||||
bufferLock_.unlock();
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ LOG_DECLARE_CATEGORY(V4L2Compat);
|
|||
V4L2CameraProxy::V4L2CameraProxy(unsigned int index,
|
||||
std::shared_ptr<Camera> camera)
|
||||
: refcount_(0), index_(index), bufferCount_(0), currentBuf_(0),
|
||||
vcam_(utils::make_unique<V4L2Camera>(camera))
|
||||
vcam_(std::make_unique<V4L2Camera>(camera))
|
||||
{
|
||||
querycap(camera);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue