From 0952512e0a2c72a823b0dd0aabd4f251230d0962 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sat, 5 Mar 2022 14:04:35 +0100 Subject: [PATCH] Move Tranche::operator== before its first use Qt6 QList::operator!= fails to compile otherwise. --- src/wayland/linuxdmabufv1clientbuffer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wayland/linuxdmabufv1clientbuffer.cpp b/src/wayland/linuxdmabufv1clientbuffer.cpp index c8fc7bac2a..20a2d13f04 100644 --- a/src/wayland/linuxdmabufv1clientbuffer.cpp +++ b/src/wayland/linuxdmabufv1clientbuffer.cpp @@ -305,6 +305,11 @@ void LinuxDmaBufV1ClientBufferIntegration::setRendererInterface(RendererInterfac d->rendererInterface = rendererInterface; } +bool operator==(const LinuxDmaBufV1Feedback::Tranche &t1, const LinuxDmaBufV1Feedback::Tranche &t2) +{ + return t1.device == t2.device && t1.flags == t2.flags && t1.formatTable == t2.formatTable; +} + void LinuxDmaBufV1ClientBufferIntegration::setSupportedFormatsWithModifiers(const QVector &tranches) { if (LinuxDmaBufV1FeedbackPrivate::get(d->defaultFeedback.data())->m_tranches != tranches) { @@ -458,11 +463,6 @@ LinuxDmaBufV1FeedbackPrivate::LinuxDmaBufV1FeedbackPrivate(LinuxDmaBufV1ClientBu { } -bool operator==(const LinuxDmaBufV1Feedback::Tranche &t1, const LinuxDmaBufV1Feedback::Tranche &t2) -{ - return t1.device == t2.device && t1.flags == t2.flags && t1.formatTable == t2.formatTable; -} - void LinuxDmaBufV1FeedbackPrivate::send(Resource *resource) { send_format_table(resource->handle, m_bufferintegration->table->fd, m_bufferintegration->table->size);