Use maybe_unused instead of Q_UNUSED
This commit is contained in:
parent
62a69e0547
commit
db0383fe0e
11 changed files with 26 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue