Skip to content

Commit 859e271

Browse files
committed
preprocessor.cpp: fixed performance-faster-string-find clang-tidy warnings
1 parent 163b8f6 commit 859e271

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/preprocessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,8 @@ std::set<std::string> Preprocessor::getConfigs() const
738738
// Insert library defines
739739
for (const auto &define : mSettings.library.defines()) {
740740

741-
const std::string::size_type paren = define.find("(");
742-
const std::string::size_type space = define.find(" ");
741+
const std::string::size_type paren = define.find('(');
742+
const std::string::size_type space = define.find(' ');
743743
std::string::size_type end = space;
744744

745745
if (paren != std::string::npos && paren < space)

0 commit comments

Comments
 (0)