mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-13 00:32:52 -07:00
Making string concatenations more efficent (#760)
by appending wchar_ts instead of wstrings
This commit is contained in:
parent
6366e0c535
commit
5e46ceabc8
2 changed files with 7 additions and 9 deletions
|
@ -1324,8 +1324,7 @@ void StandardCalculatorViewModel::SaveEditedCommand(_In_ unsigned int tokenPosit
|
|||
}
|
||||
if ((token.first.length() > 0) && (token.first[token.first.length() - 1] == L'('))
|
||||
{
|
||||
wstring chOpenBrace = L"(";
|
||||
updatedToken.append(chOpenBrace);
|
||||
updatedToken += L'(';
|
||||
}
|
||||
}
|
||||
else if (IsBinOp(nOpCode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue