]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1722] find_last does not need argument now
authorJelte Jansen <jelte@isc.org>
Wed, 29 Feb 2012 10:08:15 +0000 (11:08 +0100)
committerJelte Jansen <jelte@isc.org>
Wed, 29 Feb 2012 13:01:57 +0000 (14:01 +0100)
src/lib/dns/masterload.cc

index fbbae6ea0848dbdf33cb921a3cad2ef6f562eefd..6f1e2369c03e6b73531caad559ba6b2e43acb2f9 100644 (file)
@@ -55,7 +55,7 @@ stripLine(string& s, const Exception& ex) {
         s.resize(pos_semicolon);
     }
     // Remove any trailing whitespace return the resulting text.
-    s.resize(s.find_last_not_of(" /t", s.size()) + 1);
+    s.resize(s.find_last_not_of(" /t") + 1);
     return (s);
 }
 }