Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran-YT committed Oct 23, 2020
1 parent 16bb174 commit b18b000
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/RaccineLib/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
std::wstring utils::to_lower(const std::wstring& input)
{
std::wstring output = input;
std::transform(input.begin(), input.end(), output.begin(), ::tolower);
std::transform(output.begin(), output.end(), output.begin(),
[](wchar_t c)->wchar_t { return static_cast<wchar_t>(std::tolower(c)); });
return output;
}

0 comments on commit b18b000

Please sign in to comment.