}
if (yamlstatus == pdns::settings::rec::YamlSettingsStatus::OK) {
auto lock = g_yamlStruct.lock();
- *lock = settings;
+ *lock = std::move(settings);
}
if (yamlstatus == pdns::settings::rec::YamlSettingsStatus::CannotOpen) {
configname += ".conf";
lci = g_luaconfs.getCopy();
if (broadcast) {
startLuaConfigDelayedThreads(lci.rpzs, lci.generation);
- broadcastFunction([=] { return pleaseSupplantProxyMapping(proxyMapping); });
+ broadcastFunction([pmap = std::move(proxyMapping)] { return pleaseSupplantProxyMapping(pmap); });
}
else {
// Initial proxy mapping
// And for all other values below, the default is either an empty string or an empty vector.
// Once we get more u64 values below with different default values this hack no longer works.
rustvalue.u64_val = 24;
- map.emplace(std::pair{std::pair{section, name}, pdns::rust::settings::rec::OldStyle{section, name, name, type, rustvalue, false}});
+ map.emplace(std::pair{std::pair{section, name}, pdns::rust::settings::rec::OldStyle{section, name, name, type, std::move(rustvalue), false}});
};
def("dnssec", "trustanchors", "Vec<TrustAnchor>");
def("dnssec", "negative_trustanchors", "Vec<NegativeTrustAnchor>");