From 370dcd9d6e9137b12c3cc46a1ac1f816a2ce459d Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 8 Jun 2019 10:04:53 +0200 Subject: [PATCH] rsx: Apply Clang-Tidy fix "readability-simplify-subscript-expr" --- rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp | 2 +- rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp b/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp index 9f364c7d2f..68c52d5a63 100644 --- a/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp +++ b/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp @@ -127,7 +127,7 @@ void GLFragmentDecompilerThread::insertConstants(std::stringstream & OS) for (const ParamItem& PI : PT.items) { std::string samplerType = PT.type; - int index = atoi(&PI.name.data()[3]); + int index = atoi(&PI.name[3]); const auto mask = (1 << index); diff --git a/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp b/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp index ed5bf1e416..c4f89e61cd 100644 --- a/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp +++ b/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp @@ -126,7 +126,7 @@ void VKFragmentDecompilerThread::insertConstants(std::stringstream & OS) for (const ParamItem& PI : PT.items) { std::string samplerType = PT.type; - int index = atoi(&PI.name.data()[3]); + int index = atoi(&PI.name[3]); const auto mask = (1 << index);