clang-tidy: performance-faster-string-find

https://clang.llvm.org/extra/clang-tidy/checks/performance-faster-string-find.html
This commit is contained in:
scribam 2018-07-14 21:37:58 +02:00 committed by Ivan
parent e18e6576f3
commit 65d270e5d8
2 changed files with 2 additions and 2 deletions

View file

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