[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

@@ -35,7 +35,7 @@ class D3DCaptureState final
winrt::IDirect3DDevice device;
winrt::com_ptr<IDXGISwapChain1> swapChain;
winrt::SizeInt32 frameSize;
winrt::SizeInt32 frameSize{};
HMONITOR monitor = {};
winrt::DirectXPixelFormat pixelFormat;