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:
parent
1784b8c44d
commit
78e8621d09
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user