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 7580e1a commit 2da8bceCopy full SHA for 2da8bce
1 file changed
lib/preprocessor.cpp
@@ -777,8 +777,8 @@ std::set<std::string> Preprocessor::getConfigs() const
777
// Insert library defines
778
for (const auto &define : mSettings.library.defines()) {
779
780
- const std::string::size_type paren = define.find("(");
781
- const std::string::size_type space = define.find(" ");
+ const std::string::size_type paren = define.find('(');
+ const std::string::size_type space = define.find(' ');
782
std::string::size_type end = space;
783
784
if (paren != std::string::npos && paren < space)
0 commit comments