mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[Analyzers][CPP] Turn on warning 4458 (#22265)
* Turn on warning 4458 Fix the errors by changing variable names and supressing the warning on winRT GDI headers * explaining the warning disables
This commit is contained in:
@@ -239,8 +239,8 @@ namespace FancyZonesUnitTests
|
||||
|
||||
TEST_METHOD (FromJsonInvalidTypes)
|
||||
{
|
||||
json::JsonObject m_json = json::JsonObject::Parse(L"{\"ref-width\": true, \"ref-height\": \"string\", \"zones\": [{\"X\": \"11\", \"Y\": \"22\", \"width\": \".\", \"height\": \"*\"}, {\"X\": null, \"Y\": {}, \"width\": [], \"height\": \"абвгд\"}]}");
|
||||
Assert::IsFalse(CanvasLayoutInfoJSON::FromJson(m_json).has_value());
|
||||
json::JsonObject local_json = json::JsonObject::Parse(L"{\"ref-width\": true, \"ref-height\": \"string\", \"zones\": [{\"X\": \"11\", \"Y\": \"22\", \"width\": \".\", \"height\": \"*\"}, {\"X\": null, \"Y\": {}, \"width\": [], \"height\": \"абвгд\"}]}");
|
||||
Assert::IsFalse(CanvasLayoutInfoJSON::FromJson(local_json).has_value());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user