1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +01:00

[clang-tidy] performance-for-range-copy fix (#322)

https://clang.llvm.org/extra/clang-tidy/checks/performance-for-range-copy.html
This commit is contained in:
pchome 2018-04-28 02:14:57 +03:00 committed by Philip Rebohle
parent 1784b8c44d
commit 78e8621d09

View File

@ -52,7 +52,7 @@ namespace dxvk {
void D3D11CommandList::EmitToCommandList(ID3D11CommandList* pCommandList) {
auto cmdList = static_cast<D3D11CommandList*>(pCommandList);
for (auto chunk : m_chunks)
for (const auto& chunk : m_chunks)
cmdList->m_chunks.push_back(chunk);
cmdList->m_drawCount += m_drawCount;
@ -60,7 +60,7 @@ namespace dxvk {
void D3D11CommandList::EmitToCsThread(DxvkCsThread* CsThread) {
for (auto chunk : m_chunks)
for (const auto& chunk : m_chunks)
CsThread->dispatchChunk(Rc<DxvkCsChunk>(chunk));
}