Skip to content

Commit 20c8d96

Browse files
authored
lint: prefer std::find_first_of(char)
This simply prefers a different overload for the search as we use a single character search. This was identified by clang-tidy.
1 parent 19a5ff1 commit 20c8d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ static int GdbserverMain(int argc, char **argv) {
326326

327327
const std::string &address = opts.getPositional("[host]:port");
328328
#if defined(OS_POSIX)
329-
if (!address.empty() && address.find_first_of(":") == std::string::npos)
329+
if (!address.empty() && address.find_first_of(':') == std::string::npos)
330330
connection_type = channel_type::character_device;
331331
#endif
332332

0 commit comments

Comments
 (0)