mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
AsyncShaderCompiler: use std::make_unique in CreateWorkItem()
Same behavior, simpler code.
This commit is contained in:
parent
62615c601e
commit
6f97e3faa6
@ -39,7 +39,7 @@ public:
|
||||
template <typename T, typename... Params>
|
||||
static WorkItemPtr CreateWorkItem(Params&&... params)
|
||||
{
|
||||
return std::unique_ptr<WorkItem>(new T(std::forward<Params>(params)...));
|
||||
return std::make_unique<T>(std::forward<Params>(params)...);
|
||||
}
|
||||
|
||||
void QueueWorkItem(WorkItemPtr item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user