From 24570745905593be704ceaa990ecaa442d842d95 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 11 Jul 2025 11:26:28 +0200 Subject: [PATCH] dns: Fix a clang-tidy warning Signed-off-by: Remi Gacogne --- pdns/dns.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dns.cc b/pdns/dns.cc index ed17a5f8e6..768a126fa6 100644 --- a/pdns/dns.cc +++ b/pdns/dns.cc @@ -88,7 +88,7 @@ std::string RCode::to_short_s(uint8_t rcode) { std::optional RCode::from_short(const std::string_view& rcode_string) { - auto position = std::find(rcodes_short_s.begin(), rcodes_short_s.end(), rcode_string); + const auto* position = std::find(rcodes_short_s.begin(), rcodes_short_s.end(), rcode_string); if (position == rcodes_short_s.end()) { return std::nullopt; } -- 2.47.3