mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Add default case for switch in ConvertToLocalizedString
This commit is contained in:
parent
b1600bee60
commit
98762d2575
1 changed files with 3 additions and 3 deletions
|
@ -286,15 +286,15 @@ String ^ UnitConverterViewModel::ConvertToLocalizedString(const std::wstring& st
|
|||
|
||||
switch (cfp)
|
||||
{
|
||||
case CurrencyFormatterParameter::Default:
|
||||
currencyFormatter = m_currencyFormatter;
|
||||
break;
|
||||
case CurrencyFormatterParameter::ForValue1:
|
||||
currencyFormatter = m_currencyFormatter1;
|
||||
break;
|
||||
case CurrencyFormatterParameter::ForValue2:
|
||||
currencyFormatter = m_currencyFormatter2;
|
||||
break;
|
||||
default:
|
||||
currencyFormatter = m_currencyFormatter;
|
||||
break;
|
||||
}
|
||||
|
||||
// If unit hasn't been set, currencyFormatter1/2 is nullptr. Fallback to default.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue