From 331fe017623648e34ebbf518f03e3629dd6d6645 Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 8 Jun 2019 08:01:28 +0200 Subject: [PATCH] rsx: Apply Clang-Tidy fix "performance-for-range-copy" --- rpcs3/Emu/RSX/GL/GLVertexProgram.cpp | 2 +- rpcs3/Emu/RSX/VK/VKVertexProgram.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp b/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp index e7df99d6d3..d6bc2df573 100644 --- a/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp +++ b/rpcs3/Emu/RSX/GL/GLVertexProgram.cpp @@ -187,7 +187,7 @@ void GLVertexDecompilerThread::insertMainStart(std::stringstream & OS) OS << "{\n"; //Declare temporary registers, ignoring those mapped to outputs - for (const ParamType PT : m_parr.params[PF_PARAM_NONE]) + for (const ParamType &PT : m_parr.params[PF_PARAM_NONE]) { for (const ParamItem &PI : PT.items) { diff --git a/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp b/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp index e551ad8987..b1730c4ad3 100644 --- a/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp +++ b/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp @@ -223,7 +223,7 @@ void VKVertexDecompilerThread::insertMainStart(std::stringstream & OS) OS << "{\n"; //Declare temporary registers, ignoring those mapped to outputs - for (const ParamType PT : m_parr.params[PF_PARAM_NONE]) + for (const ParamType &PT : m_parr.params[PF_PARAM_NONE]) { for (const ParamItem &PI : PT.items) {