mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 13:53:11 -07:00
Use static_cast instead of C-style cast in UnitConverter.cpp (#1089)
This commit is contained in:
parent
41dcbf53ec
commit
f527dce88d
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ vector<wstring> UnitConverter::StringToVector(wstring_view w, wstring_view delim
|
||||||
while (delimiterIndex != wstring_view::npos)
|
while (delimiterIndex != wstring_view::npos)
|
||||||
{
|
{
|
||||||
serializedTokens.emplace_back(w.substr(startIndex, delimiterIndex - startIndex));
|
serializedTokens.emplace_back(w.substr(startIndex, delimiterIndex - startIndex));
|
||||||
startIndex = delimiterIndex + (int)delimiter.size();
|
startIndex = delimiterIndex + static_cast<int>(delimiter.size());
|
||||||
delimiterIndex = w.find(delimiter, startIndex);
|
delimiterIndex = w.find(delimiter, startIndex);
|
||||||
}
|
}
|
||||||
if (addRemainder)
|
if (addRemainder)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue