"auto" simplified

This commit is contained in:
2016-10-10 14:58:07 +02:00
parent f9697dfcee
commit 7a26128c7b
5 changed files with 9 additions and 9 deletions

View File

@@ -452,7 +452,7 @@ eap::credentials::source_t eap::credentials_pass::combine(
return source_cache;
}
auto const *cfg_with_cred = dynamic_cast<const config_method_with_cred*>(&cfg);
auto cfg_with_cred = dynamic_cast<const config_method_with_cred*>(&cfg);
if (cfg_with_cred && cfg_with_cred->m_use_cred) {
// Using configured credentials.
*this = *dynamic_cast<const credentials_pass*>(cfg_with_cred->m_cred.get());