]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
const qualifier added
authorChristian Jurk <cj@tfmt.de>
Sun, 3 Jul 2016 16:45:04 +0000 (18:45 +0200)
committerChristian Jurk <cj@tfmt.de>
Sun, 3 Jul 2016 16:45:04 +0000 (18:45 +0200)
pdns/ws-auth.cc

index 5f96bbd8004736a8fbfa400fc90ff1980a2e8ed7..56056f9c476e1233ed0ece04ae1931c9251a4fc4 100644 (file)
@@ -560,9 +560,9 @@ static bool isValidMetadataKind(const string& kind, bool readonly) {
 
   bool found = false;
 
-  for (string& s : builtinOptions) {
+  for (const string& s : builtinOptions) {
     if (kind == s) {
-      for (string& s2 : protectedOptions) {
+      for (const string& s2 : protectedOptions) {
         if (!readonly && s == s2)
           return false;
       }