diff --git a/lib/EAPBase_UI/include/EAP_UI.h b/lib/EAPBase_UI/include/EAP_UI.h index eeb0c04..cdf3d26 100644 --- a/lib/EAPBase_UI/include/EAP_UI.h +++ b/lib/EAPBase_UI/include/EAP_UI.h @@ -210,7 +210,7 @@ public: m_providers), is_single ? wxEAPGetProviderName(provider->m_name) : - winstd::tstring_printf(_T("%s (%u)"), wxEAPGetProviderName(provider->m_name), count)); + winstd::tstring_printf(_T("%s (%u)"), static_cast(wxEAPGetProviderName(provider->m_name)), count)); } } @@ -292,7 +292,7 @@ protected: int idx = m_providers->GetSelection(); eap::config_provider &cfg_provider = dynamic_cast<_wxT*>(m_providers->GetPage(idx))->GetProvider(); - if (wxMessageBox(tstring_printf(_("Are you sure you want to permanently remove %ls provider from configuration?"), wxEAPGetProviderName(cfg_provider.m_name).c_str()), _("Warning"), wxYES_NO, this) == wxYES) { + if (wxMessageBox(tstring_printf(_("Are you sure you want to permanently remove %ls provider from configuration?"), static_cast(wxEAPGetProviderName(cfg_provider.m_name))), _("Warning"), wxYES_NO, this) == wxYES) { // Delete provider. auto it = m_cfg.m_providers.begin(); for (int i = 0; i < idx; i++, ++it); diff --git a/lib/EAPBase_UI/src/EAP_UI.cpp b/lib/EAPBase_UI/src/EAP_UI.cpp index 717e3a7..01da353 100644 --- a/lib/EAPBase_UI/src/EAP_UI.cpp +++ b/lib/EAPBase_UI/src/EAP_UI.cpp @@ -96,7 +96,7 @@ wxEAPCredentialsDialog::wxEAPCredentialsDialog(const eap::config_provider &prov, wxEAPGeneralDialog(parent, id, title, pos, size, style) { // Set banner title. - m_banner->m_title->SetLabel(wxString::Format(_("%s Credentials"), wxEAPGetProviderName(prov.m_name).c_str())); + m_banner->m_title->SetLabel(wxString::Format(_("%s Credentials"), wxEAPGetProviderName(prov.m_name))); }