mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19: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
|
@ -12,7 +12,6 @@
|
|||
#include "message.h"
|
||||
#include "thread.h"
|
||||
#include "test.h"
|
||||
#include "utils.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace libcamera;
|
||||
|
@ -92,7 +91,7 @@ protected:
|
|||
|
||||
thread_.start();
|
||||
|
||||
receiver.postMessage(utils::make_unique<Message>(Message::None));
|
||||
receiver.postMessage(std::make_unique<Message>(Message::None));
|
||||
|
||||
this_thread::sleep_for(chrono::milliseconds(100));
|
||||
|
||||
|
@ -114,7 +113,7 @@ protected:
|
|||
*/
|
||||
SlowMessageReceiver *slowReceiver = new SlowMessageReceiver();
|
||||
slowReceiver->moveToThread(&thread_);
|
||||
slowReceiver->postMessage(utils::make_unique<Message>(Message::None));
|
||||
slowReceiver->postMessage(std::make_unique<Message>(Message::None));
|
||||
|
||||
this_thread::sleep_for(chrono::milliseconds(10));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue