rsx: Apply Clang-Tidy fix "readability-simplify-subscript-expr"

This commit is contained in:
scribam 2019-06-08 10:04:53 +02:00 committed by kd-11
parent 0b97d12a7b
commit 370dcd9d6e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);