From 905286e3796cd2c756fc103db93edd5d2ab1b60c Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 3 Dec 2025 09:54:23 +0100 Subject: [PATCH] 1643563 Variable copied when it could be moved Signed-off-by: Otto Moerbeek --- pdns/recursordist/rec-lua-conf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/rec-lua-conf.cc b/pdns/recursordist/rec-lua-conf.cc index 0baece0efb..fb49e46a6b 100644 --- a/pdns/recursordist/rec-lua-conf.cc +++ b/pdns/recursordist/rec-lua-conf.cc @@ -776,7 +776,7 @@ void loadRecursorLuaConfig(const std::string& fname, ProxyMapping& proxyMapping, smn->add(subnet.second); } } - proxyMapping.insert_or_assign(netmask, {address, smn}); + proxyMapping.insert_or_assign(netmask, {std::move(address), std::move(smn)}); } catch (std::exception& e) { lci.d_slog->error(Logr::Error, e.what(), "Exception processing addProxyMapping", "exception", Logging::Loggable("std::exception")); -- 2.47.3