[Analyzers][CPP]Turn on C26495 and fix code (#21163)

C26495: A member variable isn't initialized by a constructor or by an initializer.
Fixing occurrences with default member initialization.
This commit is contained in:
sosssego
2022-10-18 15:21:18 +01:00
committed by GitHub
parent 17b80aa0f1
commit 16c28c788d
11 changed files with 47 additions and 43 deletions

View File

@@ -102,7 +102,7 @@ namespace JsonUtils
struct CustomLayoutJSON
{
GUID layoutId;
GUID layoutId{};
FancyZonesDataTypes::CustomLayoutData data;
static std::optional<CustomLayoutJSON> FromJson(const json::JsonObject& json)