Making string concatenations more efficent (#760)

by appending wchar_ts instead of  wstrings
This commit is contained in:
Scott Freeman 2019-10-31 14:44:25 -04:00 committed by Matt Cooley
parent 6366e0c535
commit 5e46ceabc8
2 changed files with 7 additions and 9 deletions

View file

@ -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))