Skip to content

Commit 57853a3

Browse files
authored
optimized simplifyPath() a bit (#289)
1 parent 8975f02 commit 57853a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2355,7 +2355,7 @@ namespace simplecpp {
23552355
if (unc)
23562356
path = '/' + path;
23572357

2358-
return path.find_first_of("*?") == std::string::npos ? realFilename(path) : path;
2358+
return strpbrk(path.c_str(), "*?") == nullptr ? realFilename(path) : path;
23592359
}
23602360
}
23612361

0 commit comments

Comments
 (0)