[CPP][Analyzers]Turn on warning 4244 (#22019)

* Turn on warning 4244

fix one occurrence of 4100

* changes from comments

* toupper on wchar
This commit is contained in:
sosssego
2022-11-17 16:24:56 +00:00
committed by GitHub
parent 8fb93dc6ee
commit 195c265a36
9 changed files with 11 additions and 10 deletions

View File

@@ -2,6 +2,8 @@
#include "../utils/json.h"
#include <cwctype>
namespace PowerToysSettings
{
class HotkeyObject;
@@ -230,7 +232,7 @@ namespace PowerToysSettings
if (output_bytes == 1 && output[0] >= 'a' && output[0] <= 'z')
{
// Make Latin letters keys capital, as it looks better
output[0] = toupper(output[0]);
output[0] = std::towupper(output[0]);
}
return output.data();
}