Skip to content

Commit 2da8bce

Browse files
committed
preprocessor.cpp: fixed performance-faster-string-find clang-tidy warnings
1 parent 7580e1a commit 2da8bce

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
@@ -777,8 +777,8 @@ std::set<std::string> Preprocessor::getConfigs() const
777777
// Insert library defines
778778
for (const auto &define : mSettings.library.defines()) {
779779

780-
const std::string::size_type paren = define.find("(");
781-
const std::string::size_type space = define.find(" ");
780+
const std::string::size_type paren = define.find('(');
781+
const std::string::size_type space = define.find(' ');
782782
std::string::size_type end = space;
783783

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

0 commit comments

Comments
 (0)