summaryrefslogtreecommitdiff
path: root/tests/auto/client
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2020-02-19 09:41:06 +0100
committerJohan Klokkhammer Helsing <johan.helsing@qt.io>2020-02-19 12:39:54 +0100
commit4669bb061a1888fe12450f0171b999d51bf50896 (patch)
tree92bc6c7a7f4de6bdfe03e81d0a6cc46446643a82 /tests/auto/client
parent2d75b6fa5109d61208ba115b0623136047ab65ab (diff)
downloadqtwayland-4669bb061a1888fe12450f0171b999d51bf50896.tar.gz
Fix compile errors in tests
const qualifiers made default assignment operators invalid. Change-Id: I8b22a04f6e2f3b9b76a971b0a59f5fdce589c8e5 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'tests/auto/client')
-rw-r--r--tests/auto/client/seatv4/tst_seatv4.cpp4
-rw-r--r--tests/auto/client/seatv5/tst_seatv5.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/client/seatv4/tst_seatv4.cpp b/tests/auto/client/seatv4/tst_seatv4.cpp
index f5c07896..46d91e02 100644
--- a/tests/auto/client/seatv4/tst_seatv4.cpp
+++ b/tests/auto/client/seatv4/tst_seatv4.cpp
@@ -289,8 +289,8 @@ void tst_seatv4::simpleAxis()
{
Event() = default;
- const QPoint pixelDelta;
- const QPoint angleDelta; // eights of a degree, positive is upwards, left
+ QPoint pixelDelta;
+ QPoint angleDelta; // eights of a degree, positive is upwards, left
};
QVector<Event> m_events;
};
diff --git a/tests/auto/client/seatv5/tst_seatv5.cpp b/tests/auto/client/seatv5/tst_seatv5.cpp
index 2a2a05cd..081a0aa7 100644
--- a/tests/auto/client/seatv5/tst_seatv5.cpp
+++ b/tests/auto/client/seatv5/tst_seatv5.cpp
@@ -156,10 +156,10 @@ public:
, source(event->source())
{
}
- const Qt::ScrollPhase phase{};
- const QPoint pixelDelta;
- const QPoint angleDelta; // eights of a degree, positive is upwards, left
- const Qt::MouseEventSource source{};
+ Qt::ScrollPhase phase{};
+ QPoint pixelDelta;
+ QPoint angleDelta; // eights of a degree, positive is upwards, left
+ Qt::MouseEventSource source{};
};
QVector<Event> m_events;
};