Skip to content

Commit

Permalink
std::make_unique
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Apr 3, 2024
1 parent b4d1f3d commit b38792c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/threading/lambda.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class LambdaThread : public Thread
std::unique_ptr<LambdaThread> runInThread(const std::function<void()> &fn,
const std::string &thread_name = "")
{
std::unique_ptr<LambdaThread> t(new LambdaThread(thread_name));
auto t = std::make_unique<LambdaThread>(thread_name);
t->m_fn = fn;
t->start();
return t;
Expand Down

0 comments on commit b38792c

Please sign in to comment.