]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
[clang-tidy] Use find with better override. 12059/head
authorAxel Viala <axel.viala@darnuria.eu>
Mon, 3 Oct 2022 21:33:22 +0000 (23:33 +0200)
committerAxel Viala <axel.viala@darnuria.eu>
Sun, 6 Nov 2022 12:45:55 +0000 (13:45 +0100)
modules/geoipbackend/geoipbackend.cc

index 89df74e1154392b06e92f773b81ff0325fbee5ac..b5a021dd341da88b828acf9560ad219a5fdb03da 100644 (file)
@@ -655,7 +655,7 @@ string GeoIPBackend::format2str(string sformat, const Netmask& addr, GeoIPNetmas
   gmtime_r(&t, &gtm);
   last = 0;
 
-  while ((cur = sformat.find("%", last)) != string::npos) {
+  while ((cur = sformat.find('%', last)) != string::npos) {
     string rep;
     int nrep = 3;
     tmp_gl.netmask = 0;