Skip to content

Commit

Permalink
clang-tidy: use find with ''
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jun 5, 2024
1 parent 288f4f8 commit 96b48ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/geoipbackend/geoipinterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ unique_ptr<GeoIPInterface> GeoIPInterface::makeInterface(const string& dbStr)
stringtok(parts2, parts1[0], ";");
/* try extension */
filename = parts2[0];
size_t pos = filename.find_last_of(".");
size_t pos = filename.find_last_of('.');
if (pos != string::npos)
driver = filename.substr(pos + 1);
else
Expand Down

0 comments on commit 96b48ed

Please sign in to comment.