"auto" simplified
This commit is contained in:
parent
f9697dfcee
commit
7a26128c7b
@ -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());
|
||||
|
@ -278,7 +278,7 @@ eap::credentials::source_t eap::credentials_eapmsg::combine(
|
||||
// }
|
||||
//}
|
||||
|
||||
auto const *cfg_eapmsg = dynamic_cast<const config_method_eapmsg*>(&cfg);
|
||||
auto cfg_eapmsg = dynamic_cast<const config_method_eapmsg*>(&cfg);
|
||||
BOOL fInvokeUI = FALSE;
|
||||
DWORD cred_data_size = 0;
|
||||
eap_blob_runtime cred_data;
|
||||
|
@ -307,7 +307,7 @@ eap::credentials::source_t eap::credentials_tls::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->m_use_cred) {
|
||||
// Using configured credentials.
|
||||
*this = *dynamic_cast<const credentials_tls*>(cfg_with_cred->m_cred.get());
|
||||
|
@ -64,9 +64,9 @@ void eap::method_ttls::begin_session(
|
||||
method_tls::begin_session(dwFlags, pAttributeArray, hTokenImpersonateUser, dwMaxSendPacketSize);
|
||||
|
||||
// Initialize inner method.
|
||||
auto * cfg_inner = dynamic_cast<config_method_ttls &>(m_cfg ).m_inner.get();
|
||||
auto *cred_inner = dynamic_cast<credentials_ttls &>(m_cred).m_inner.get();
|
||||
auto *cfg_inner_eapmsg = dynamic_cast<config_method_eapmsg*>(cfg_inner);
|
||||
auto cfg_inner = dynamic_cast<config_method_ttls &>(m_cfg ).m_inner.get();
|
||||
auto cred_inner = dynamic_cast<credentials_ttls &>(m_cred).m_inner.get();
|
||||
auto cfg_inner_eapmsg = dynamic_cast<config_method_eapmsg*>(cfg_inner);
|
||||
if (!cfg_inner_eapmsg) {
|
||||
// Native inner methods
|
||||
switch (cfg_inner->get_method_id()) {
|
||||
|
@ -234,9 +234,9 @@ wxTTLSConfigWindow::~wxTTLSConfigWindow()
|
||||
|
||||
bool wxTTLSConfigWindow::TransferDataToWindow()
|
||||
{
|
||||
auto &cfg_ttls = dynamic_cast<eap::config_method_ttls&>(m_cfg);
|
||||
auto cfg_ttls = dynamic_cast<eap::config_method_ttls&>(m_cfg);
|
||||
|
||||
auto *cfg_inner_eapmsg = dynamic_cast<eap::config_method_eapmsg*>(cfg_ttls.m_inner.get());
|
||||
auto cfg_inner_eapmsg = dynamic_cast<eap::config_method_eapmsg*>(cfg_ttls.m_inner.get());
|
||||
if (!cfg_inner_eapmsg) {
|
||||
// Native inner methods
|
||||
switch (cfg_ttls.m_inner->get_method_id()) {
|
||||
@ -269,7 +269,7 @@ bool wxTTLSConfigWindow::TransferDataFromWindow()
|
||||
{
|
||||
wxCHECK(wxScrolledWindow::TransferDataFromWindow(), false);
|
||||
|
||||
auto &cfg_ttls = dynamic_cast<eap::config_method_ttls&>(m_cfg);
|
||||
auto cfg_ttls = dynamic_cast<eap::config_method_ttls&>(m_cfg);
|
||||
|
||||
if (!m_prov.m_read_only) {
|
||||
// This is not a provider-locked configuration. Save the data.
|
||||
|
Loading…
x
Reference in New Issue
Block a user