summaryrefslogtreecommitdiffstats
path: root/src/plugins/directshow/common/directshowpin.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-09-05 09:12:49 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-09-05 12:15:09 +0000
commita9789cf46b19726e201069e9d4dfee48f0570691 (patch)
treecb3d4d73ce52597e1661b8013f71367f781355ae /src/plugins/directshow/common/directshowpin.h
parent35ace9e289dcaada5e0828a59ca7dfee78a6342c (diff)
DirectShow: Fix clang-tidy warnings about class definitions
- Use ' = default' for trivial constructors/destructors - replace virtual by override or add override where applicable - Replace trivial constructors by member initialization for simple structs - Add Q_DISABLE_COPY where applicable - Mark move assignment/move constructors as noexcept - Remove unused member variables Change-Id: I579fb69ebcd945b94de32b827d93e5a4dab4df97 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/directshow/common/directshowpin.h')
-rw-r--r--src/plugins/directshow/common/directshowpin.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/src/plugins/directshow/common/directshowpin.h b/src/plugins/directshow/common/directshowpin.h
index 9598cf525..5e513d002 100644
--- a/src/plugins/directshow/common/directshowpin.h
+++ b/src/plugins/directshow/common/directshowpin.h
@@ -68,30 +68,30 @@ public:
virtual HRESULT setActive(bool active);
// IPin
- STDMETHODIMP Connect(IPin *pReceivePin, const AM_MEDIA_TYPE *pmt);
- STDMETHODIMP ReceiveConnection(IPin *pConnector, const AM_MEDIA_TYPE *pmt);
- STDMETHODIMP Disconnect();
- STDMETHODIMP ConnectedTo(IPin **ppPin);
+ STDMETHODIMP Connect(IPin *pReceivePin, const AM_MEDIA_TYPE *pmt) override;
+ STDMETHODIMP ReceiveConnection(IPin *pConnector, const AM_MEDIA_TYPE *pmt) override;
+ STDMETHODIMP Disconnect() override;
+ STDMETHODIMP ConnectedTo(IPin **ppPin) override;
- STDMETHODIMP ConnectionMediaType(AM_MEDIA_TYPE *pmt);
+ STDMETHODIMP ConnectionMediaType(AM_MEDIA_TYPE *pmt) override;
- STDMETHODIMP QueryPinInfo(PIN_INFO *pInfo);
- STDMETHODIMP QueryId(LPWSTR *Id);
+ STDMETHODIMP QueryPinInfo(PIN_INFO *pInfo) override;
+ STDMETHODIMP QueryId(LPWSTR *Id) override;
- STDMETHODIMP QueryAccept(const AM_MEDIA_TYPE *pmt);
+ STDMETHODIMP QueryAccept(const AM_MEDIA_TYPE *pmt) override;
- STDMETHODIMP EnumMediaTypes(IEnumMediaTypes **ppEnum);
+ STDMETHODIMP EnumMediaTypes(IEnumMediaTypes **ppEnum) override;
- STDMETHODIMP QueryInternalConnections(IPin **apPin, ULONG *nPin);
+ STDMETHODIMP QueryInternalConnections(IPin **apPin, ULONG *nPin) override;
- STDMETHODIMP EndOfStream();
+ STDMETHODIMP EndOfStream() override;
- STDMETHODIMP BeginFlush();
- STDMETHODIMP EndFlush();
+ STDMETHODIMP BeginFlush() override;
+ STDMETHODIMP EndFlush() override;
- STDMETHODIMP NewSegment(REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);
+ STDMETHODIMP NewSegment(REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate) override;
- STDMETHODIMP QueryDirection(PIN_DIRECTION *pPinDir);
+ STDMETHODIMP QueryDirection(PIN_DIRECTION *pPinDir) override;
protected:
DirectShowPin(DirectShowBaseFilter *filter, const QString &name, PIN_DIRECTION direction);
@@ -140,27 +140,28 @@ class DirectShowInputPin : public DirectShowPin
, public IMemInputPin
{
public:
- virtual ~DirectShowInputPin();
+ ~DirectShowInputPin() override;
const AM_SAMPLE2_PROPERTIES *currentSampleProperties() const { return &m_sampleProperties; }
// DirectShowPin
- HRESULT connectionEnded();
- HRESULT setActive(bool active);
+ HRESULT connectionEnded() override;
+ HRESULT setActive(bool active) override;
// IPin
- STDMETHODIMP EndOfStream();
- STDMETHODIMP BeginFlush();
- STDMETHODIMP EndFlush();
+ STDMETHODIMP EndOfStream() override;
+ STDMETHODIMP BeginFlush() override;
+ STDMETHODIMP EndFlush() override;
// IMemInputPin
- STDMETHODIMP GetAllocator(IMemAllocator **ppAllocator);
- STDMETHODIMP NotifyAllocator(IMemAllocator *pAllocator, BOOL bReadOnly);
- STDMETHODIMP GetAllocatorRequirements(ALLOCATOR_PROPERTIES *pProps);
-
- STDMETHODIMP Receive(IMediaSample *pSample);
- STDMETHODIMP ReceiveMultiple(IMediaSample **pSamples, long nSamples, long *nSamplesProcessed);
- STDMETHODIMP ReceiveCanBlock();
+ STDMETHODIMP GetAllocator(IMemAllocator **ppAllocator) override;
+ STDMETHODIMP NotifyAllocator(IMemAllocator *pAllocator, BOOL bReadOnly) override;
+ STDMETHODIMP GetAllocatorRequirements(ALLOCATOR_PROPERTIES *pProps) override;
+
+ STDMETHODIMP Receive(IMediaSample *pSample) override;
+ STDMETHODIMP ReceiveMultiple(IMediaSample **pSamples, long nSamples,
+ long *nSamplesProcessed) override;
+ STDMETHODIMP ReceiveCanBlock() override;
protected:
DirectShowInputPin(DirectShowBaseFilter *filter, const QString &name);