Don't use auto&& in non-template code

Use explicit types instead.
This commit is contained in:
Markus Mäkelä
2018-08-01 14:11:15 +03:00
parent 4c7a5017bc
commit a252b45f18
10 changed files with 24 additions and 24 deletions

View File

@ -76,9 +76,9 @@ void Avro::read_source_service_options(SERVICE* source)
}
}
for (auto&& opt: mxs::strtok(config_get_string(params, "router_options"), ", \t"))
for (const auto& opt: mxs::strtok(config_get_string(params, "router_options"), ", \t"))
{
auto&& kv = mxs::strtok(opt, "=");
auto kv = mxs::strtok(opt, "=");
if (kv[0] == "binlogdir")
{