]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clang-tidy: use find with ''
authorRosen Penev <rosenp@gmail.com>
Sat, 10 Feb 2024 00:59:55 +0000 (16:59 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 5 Jun 2024 02:10:51 +0000 (19:10 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
modules/geoipbackend/geoipinterface.cc

index aac49eca75cb32745002ce03f3db5193c14f03e0..7fc6cce353744d9952b32860749b6ff0908eb41d 100644 (file)
@@ -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