From d8043c7371ef1bbb78e2a43f7f61d3640b04b13e Mon Sep 17 00:00:00 2001 From: Christian Jurk Date: Sun, 3 Jul 2016 18:45:04 +0200 Subject: [PATCH] const qualifier added --- pdns/ws-auth.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2