summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/AsyncShaderCompiler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/AsyncShaderCompiler.h b/Source/Core/VideoCommon/AsyncShaderCompiler.h
index fb117dab28..fabe264025 100644
--- a/Source/Core/VideoCommon/AsyncShaderCompiler.h
+++ b/Source/Core/VideoCommon/AsyncShaderCompiler.h
@@ -11,6 +11,7 @@
#include <memory>
#include <mutex>
#include <thread>
+#include <utility>
#include <vector>
#include "Common/CommonTypes.h"
@@ -36,9 +37,9 @@ public:
virtual ~AsyncShaderCompiler();
template <typename T, typename... Params>
- static WorkItemPtr CreateWorkItem(Params... params)
+ static WorkItemPtr CreateWorkItem(Params&&... params)
{
- return std::unique_ptr<WorkItem>(new T(params...));
+ return std::make_unique<T>(std::forward<Params>(params)...);
}
void QueueWorkItem(WorkItemPtr item);