mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
clang-tidy: performance-faster-string-find
https://clang.llvm.org/extra/clang-tidy/checks/performance-faster-string-find.html
This commit is contained in:
parent
e18e6576f3
commit
65d270e5d8
2 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ public:
|
|||
{
|
||||
// Separate 'double destination' variables 'X=Y=SRC'
|
||||
std::string simple_var;
|
||||
const auto pos = var.find("=");
|
||||
const auto pos = var.find('=');
|
||||
|
||||
if (pos != std::string::npos)
|
||||
{
|
||||
|
|
|
@ -309,7 +309,7 @@ void VertexProgramDecompiler::AddCodeCond(const std::string& dst, const std::str
|
|||
auto get_masked_dst = [](const std::string& dest, const char mask)
|
||||
{
|
||||
const auto selector = std::string(".") + mask;
|
||||
const auto pos = dest.find("=");
|
||||
const auto pos = dest.find('=');
|
||||
|
||||
std::string result = dest + selector;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue