EDNSOptionViewValue value;
value.content = optRR + pos;
value.size = optionLen;
- options[optionCode].values.push_back(std::move(value));
+ options[optionCode].values.push_back(value);
/* skip this option */
pos += optionLen;
* @example pickwrandom({ {100, '1.2.3.4'}, {50, '5.4.3.2'}, {1, '192.168.1.0'} })
*/
lua.writeFunction("pickwrandom", [](std::unordered_map<int, wiplist_t> ips) {
- vector<pair<int,ComboAddress> > conv = convWIplist(std::move(ips));
+ vector<pair<int,ComboAddress> > conv = convWIplist(ips);
return pickwrandom(conv).toString();
});
d_echconfig = value;
return;
}
- d_value = std::move(value);
+ d_value = value;
}
SvcParam::SvcParam(const SvcParamKey &key, std::vector<std::string> &&value) {
}
if (d_key == SvcParamKey::mandatory) {
for (auto const &v: value) {
- d_mandatory.insert(keyFromString(std::move(v)));
+ d_mandatory.insert(keyFromString(v));
}
}
}
static void *WebServerConnectionThreadStart(const WebServer* webServer, std::shared_ptr<Socket> client) {
setThreadName("pdns-r/webhndlr");
try {
- webServer->serveConnection(std::move(client));
+ webServer->serveConnection(client);
}
catch(PDNSException &e) {
g_log<<Logger::Error<<"PDNSException while serving a connection in main webserver thread: "<<e.reason<<endl;