mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[Analyzers][CPP] Turn on warning 26492 (#23492)
This commit is contained in:
@@ -247,6 +247,10 @@ struct VideoCaptureReceiverPin : winrt::implements<VideoCaptureReceiverPin, IPin
|
||||
|
||||
if (_captureInputPin)
|
||||
{
|
||||
// disable warning 26492 - Don't use const_cast to cast away const
|
||||
// reset needs 'pmt' to be non-const, we can't easily change the query accept prototype
|
||||
// because of the inheritance.
|
||||
#pragma warning(suppress : 26492)
|
||||
_inputCaptureMediaType.reset(const_cast<AM_MEDIA_TYPE*>(pmt));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user