mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 19:12:47 +02:00
InputConfigDiag: Fix building DolphinWX on the latest MSVC
const char[1] and wxString() can both be converted to multiple common types, so this results in an ambiguous conditional expression compilation error (C2445)
This commit is contained in:
parent
d7aa49a1a7
commit
6c326e7215
@ -348,13 +348,14 @@ void ControlDialog::UpdateGUI()
|
|||||||
m_error_label->SetLabel(_("Syntax error"));
|
m_error_label->SetLabel(_("Syntax error"));
|
||||||
break;
|
break;
|
||||||
case ParseStatus::Successful:
|
case ParseStatus::Successful:
|
||||||
m_error_label->SetLabel(control_reference->BoundCount() > 0 ? "" : _("Device not found"));
|
m_error_label->SetLabel(control_reference->BoundCount() > 0 ? wxString{} :
|
||||||
|
_("Device not found"));
|
||||||
break;
|
break;
|
||||||
case ParseStatus::EmptyExpression:
|
case ParseStatus::EmptyExpression:
|
||||||
m_error_label->SetLabel("");
|
m_error_label->SetLabel("");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
void InputConfigDialog::UpdateGUI()
|
void InputConfigDialog::UpdateGUI()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user