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:
Lioncash 2017-09-17 02:37:30 -04:00
parent d7aa49a1a7
commit 6c326e7215
1 changed files with 3 additions and 2 deletions

View File

@ -348,13 +348,14 @@ void ControlDialog::UpdateGUI()
m_error_label->SetLabel(_("Syntax error"));
break;
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;
case ParseStatus::EmptyExpression:
m_error_label->SetLabel("");
break;
}
};
}
void InputConfigDialog::UpdateGUI()
{