1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 13:24:10 +01:00

[clang-tidy] performance-move-const-arg fix (#324)

https://clang.llvm.org/extra/clang-tidy/checks/performance-move-const-arg.html
This commit is contained in:
pchome 2018-04-28 15:13:23 +03:00 committed by Philip Rebohle
parent 1dbf8bf2a1
commit 4a74cd45d5
3 changed files with 8 additions and 8 deletions

View File

@ -2604,7 +2604,7 @@ namespace dxvk {
} }
// Create and bind the framebuffer object to the context // Create and bind the framebuffer object to the context
EmitCs([cAttachments = std::move(attachments)] (DxvkContext* ctx) { EmitCs([cAttachments = attachments] (DxvkContext* ctx) {
ctx->bindRenderTargets(cAttachments); ctx->bindRenderTargets(cAttachments);
}); });
} }

View File

@ -1032,7 +1032,7 @@ namespace dxvk {
return S_FALSE; return S_FALSE;
*ppVertexShader = ref(new D3D11VertexShader( *ppVertexShader = ref(new D3D11VertexShader(
this, std::move(module))); this, module));
return S_OK; return S_OK;
} }
@ -1054,7 +1054,7 @@ namespace dxvk {
return S_FALSE; return S_FALSE;
*ppGeometryShader = ref(new D3D11GeometryShader( *ppGeometryShader = ref(new D3D11GeometryShader(
this, std::move(module))); this, module));
return S_OK; return S_OK;
} }
@ -1092,7 +1092,7 @@ namespace dxvk {
return S_FALSE; return S_FALSE;
*ppPixelShader = ref(new D3D11PixelShader( *ppPixelShader = ref(new D3D11PixelShader(
this, std::move(module))); this, module));
return S_OK; return S_OK;
} }
@ -1114,7 +1114,7 @@ namespace dxvk {
return S_FALSE; return S_FALSE;
*ppHullShader = ref(new D3D11HullShader( *ppHullShader = ref(new D3D11HullShader(
this, std::move(module))); this, module));
return S_OK; return S_OK;
} }
@ -1136,7 +1136,7 @@ namespace dxvk {
return S_FALSE; return S_FALSE;
*ppDomainShader = ref(new D3D11DomainShader( *ppDomainShader = ref(new D3D11DomainShader(
this, std::move(module))); this, module));
return S_OK; return S_OK;
} }
@ -1158,7 +1158,7 @@ namespace dxvk {
return S_FALSE; return S_FALSE;
*ppComputeShader = ref(new D3D11ComputeShader( *ppComputeShader = ref(new D3D11ComputeShader(
this, std::move(module))); this, module));
return S_OK; return S_OK;
} }

View File

@ -104,7 +104,7 @@ namespace dxvk {
public: public:
D3D11Shader(D3D11Device* device, const D3D11ShaderModule& module) D3D11Shader(D3D11Device* device, const D3D11ShaderModule& module)
: m_device(device), m_module(std::move(module)) { } : m_device(device), m_module(module) { }
~D3D11Shader() { } ~D3D11Shader() { }