Updating code to append a wchar_t instead of const wchar_t (#778)
This commit is contained in:
committed by
Matt Cooley
parent
4c81ed83c7
commit
01299a92cd
@@ -252,7 +252,7 @@ String ^ DateCalculatorViewModel::GetDateDiffString() const
|
||||
if (yearCount > 0)
|
||||
{
|
||||
result += GetLocalizedNumberString(yearCount)->Data();
|
||||
result += L" ";
|
||||
result += L' ';
|
||||
|
||||
if (yearCount > 1)
|
||||
{
|
||||
@@ -280,7 +280,7 @@ String ^ DateCalculatorViewModel::GetDateDiffString() const
|
||||
}
|
||||
|
||||
result += GetLocalizedNumberString(monthCount)->Data();
|
||||
result += L" ";
|
||||
result += L' ';
|
||||
|
||||
if (monthCount > 1)
|
||||
{
|
||||
@@ -305,7 +305,7 @@ String ^ DateCalculatorViewModel::GetDateDiffString() const
|
||||
}
|
||||
|
||||
result += GetLocalizedNumberString(weekCount)->Data();
|
||||
result += L" ";
|
||||
result += L' ';
|
||||
|
||||
if (weekCount > 1)
|
||||
{
|
||||
@@ -330,7 +330,7 @@ String ^ DateCalculatorViewModel::GetDateDiffString() const
|
||||
}
|
||||
|
||||
result += GetLocalizedNumberString(dayCount)->Data();
|
||||
result += L" ";
|
||||
result += L' ';
|
||||
|
||||
if (dayCount > 1)
|
||||
{
|
||||
@@ -348,7 +348,7 @@ String ^ DateCalculatorViewModel::GetDateDiffString() const
|
||||
String ^ DateCalculatorViewModel::GetDateDiffStringInDays() const
|
||||
{
|
||||
wstring result = GetLocalizedNumberString(m_dateDiffResultInDays.day)->Data();
|
||||
result += L" ";
|
||||
result += L' ';
|
||||
|
||||
// Display the result as '1 day' or 'N days'
|
||||
if (m_dateDiffResultInDays.day > 1)
|
||||
|
Reference in New Issue
Block a user