Skip to content

Commit

Permalink
Use 'else if' instead of multiple 'if'
Browse files Browse the repository at this point in the history
  • Loading branch information
jp9000 committed Sep 16, 2014
1 parent 04c385c commit fa3429f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DShowPlugin/CaptureFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa3429f

Please sign in to comment.