mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[Analyzers][CPP] Turn on warning 26403 (#22795)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user