summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-09-02 14:07:57 -0400
committerLioncash <mathew1800@gmail.com>2017-09-02 14:08:00 -0400
commit6f97e3faa644c810a5d9155d74c98b02f4865a65 (patch)
treef846195790d3c5100d69ba9049326d8bfe2ce0ad /Source
parent62615c601ef77926369f480cf0e0106074b0882b (diff)
AsyncShaderCompiler: use std::make_unique in CreateWorkItem()
Same behavior, simpler code.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/AsyncShaderCompiler.h2
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);