Use maybe_unused instead of Q_UNUSED

This commit is contained in:
Vitor Kiguchi 2020-08-15 10:55:54 -03:00
parent 62a69e0547
commit db0383fe0e
11 changed files with 26 additions and 42 deletions

View file

@ -12,9 +12,8 @@
namespace Camera {
QList<QVideoFrame::PixelFormat> QtCameraSurface::supportedPixelFormats(
QAbstractVideoBuffer::HandleType handleType) const {
Q_UNUSED(handleType);
QList<QVideoFrame::PixelFormat> QtCameraSurface::supportedPixelFormats([
[maybe_unused]] QAbstractVideoBuffer::HandleType handleType) const {
return QList<QVideoFrame::PixelFormat>()
<< QVideoFrame::Format_ARGB32 << QVideoFrame::Format_ARGB32_Premultiplied
<< QVideoFrame::Format_RGB32 << QVideoFrame::Format_RGB24 << QVideoFrame::Format_RGB565