diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-05 09:58:46 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-05 13:15:39 +0000 |
commit | be7f8d3a49fc6d5d31e6fe61f9ba2dec43341e90 (patch) | |
tree | e8d249300a22fed7fff1787449b9d3ad8e6c9f98 /src/plugins/directshow/common/directshowmediatype.cpp | |
parent | 8daa96db2991c24c9102e736413f79241813b7df (diff) |
DirectShow: Fix clang-tidy warnings about else after return
- Unindent the code or replace by switch ()
- Smaller fixups when reindenting (nullptr, use QStringView for
comparison against wchar_t)
Change-Id: I249cb00b9ebe375b089d8d53b10c2d16d5771680
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/directshow/common/directshowmediatype.cpp')
-rw-r--r-- | src/plugins/directshow/common/directshowmediatype.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/directshow/common/directshowmediatype.cpp b/src/plugins/directshow/common/directshowmediatype.cpp index dc8e598f0..fe86e0204 100644 --- a/src/plugins/directshow/common/directshowmediatype.cpp +++ b/src/plugins/directshow/common/directshowmediatype.cpp @@ -250,7 +250,8 @@ QVideoSurfaceFormat DirectShowMediaType::videoFormatFromType(const AM_MEDIA_TYPE format.setScanLineDirection(scanLineDirection(format.pixelFormat(), header->bmiHeader)); return format; - } else if (IsEqualGUID(type->formattype, FORMAT_VideoInfo2)) { + } + if (IsEqualGUID(type->formattype, FORMAT_VideoInfo2)) { VIDEOINFOHEADER2 *header = reinterpret_cast<VIDEOINFOHEADER2 *>(type->pbFormat); QVideoSurfaceFormat format( |