From: Christian Jurk Date: Sun, 3 Jul 2016 16:45:04 +0000 (+0200) Subject: const qualifier added X-Git-Tag: dnsdist-1.1.0-beta2~141^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8043c7371ef1bbb78e2a43f7f61d3640b04b13e;p=thirdparty%2Fpdns.git const qualifier added --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 5f96bbd800..56056f9c47 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -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; }