From 6f97e3faa644c810a5d9155d74c98b02f4865a65 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 2 Sep 2017 14:07:57 -0400 Subject: [PATCH] AsyncShaderCompiler: use std::make_unique in CreateWorkItem() Same behavior, simpler code. --- Source/Core/VideoCommon/AsyncShaderCompiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 static WorkItemPtr CreateWorkItem(Params&&... params) { - return std::unique_ptr(new T(std::forward(params)...)); + return std::make_unique(std::forward(params)...); } void QueueWorkItem(WorkItemPtr item);