We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
performance-faster-string-find
1 parent f1669fe commit 31706c2Copy full SHA for 31706c2
1 file changed
lib/preprocessor.cpp
@@ -738,8 +738,8 @@ std::set<std::string> Preprocessor::getConfigs() const
738
// Insert library defines
739
for (const auto &define : mSettings.library.defines()) {
740
741
- const std::string::size_type paren = define.find("(");
742
- const std::string::size_type space = define.find(" ");
+ const std::string::size_type paren = define.find('(');
+ const std::string::size_type space = define.find(' ');
743
std::string::size_type end = space;
744
745
if (paren != std::string::npos && paren < space)
0 commit comments