diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-09-02 14:07:57 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-09-02 14:08:00 -0400 |
| commit | 6f97e3faa644c810a5d9155d74c98b02f4865a65 (patch) | |
| tree | f846195790d3c5100d69ba9049326d8bfe2ce0ad /Source | |
| parent | 62615c601ef77926369f480cf0e0106074b0882b (diff) | |
AsyncShaderCompiler: use std::make_unique in CreateWorkItem()
Same behavior, simpler code.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoCommon/AsyncShaderCompiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AsyncShaderCompiler.h b/Source/Core/VideoCommon/AsyncShaderCompiler.h index fc0bca8d72..fabe264025 100644 --- a/Source/Core/VideoCommon/AsyncShaderCompiler.h +++ b/Source/Core/VideoCommon/AsyncShaderCompiler.h @@ -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); |
