From fa3429f50bea9c403daf0d04955fe607f2565812 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 16 Sep 2014 14:24:54 -0700 Subject: [PATCH] Use 'else if' instead of multiple 'if' --- DShowPlugin/CaptureFilter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DShowPlugin/CaptureFilter.cpp b/DShowPlugin/CaptureFilter.cpp index 27ea880bd..b95591865 100644 --- a/DShowPlugin/CaptureFilter.cpp +++ b/DShowPlugin/CaptureFilter.cpp @@ -283,19 +283,19 @@ STDMETHODIMP CaptureFilter::QueryInterface(REFIID riid, void **ppv) *ppv = (IUnknown*)this; return NOERROR; } - if(riid == IID_IPersist) + else if(riid == IID_IPersist) { AddRef(); *ppv = (IPersist*)this; return NOERROR; } - if(riid == IID_IMediaFilter) + else if(riid == IID_IMediaFilter) { AddRef(); *ppv = (IMediaFilter*)this; return NOERROR; } - if(riid == IID_IBaseFilter) + else if(riid == IID_IBaseFilter) { AddRef(); *ppv = (IBaseFilter*)this;