[Analyzers][CPP] Turn on warning 26403 (#22795)

This commit is contained in:
sosssego
2023-01-03 09:16:27 -03:00
committed by GitHub
parent dd62dab831
commit 6287460614
3 changed files with 13 additions and 10 deletions

View File

@@ -197,13 +197,9 @@ std::unique_ptr<D3DCaptureState> D3DCaptureState::Create(DxgiAPI* dxgiAPI,
swapChain.put()));
// We must create the object in a heap, since we need to pin it in memory to receive callbacks
auto statePtr = new D3DCaptureState{ dxgiAPI,
std::move(swapChain),
pixelFormat,
std::move(monitorInfo),
continuousCapture };
auto statePtr = std::unique_ptr<D3DCaptureState>(new D3DCaptureState{ dxgiAPI, std::move(swapChain), pixelFormat, std::move(monitorInfo), continuousCapture });
return std::unique_ptr<D3DCaptureState>{ statePtr };
return statePtr;
}
D3DCaptureState::~D3DCaptureState()