aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-22 12:33:52 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-22 16:00:22 +0200
commit1270a88cb3fa446ce2201d4204ff05b8b969f2ea (patch)
treeaa14ad6fc6cb3eb2740a7803c598a8297ac36be1 /tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
parent328759cdeb7b45eba5569b54ded35e38152ee0d0 (diff)
Fix compile warnings from tests
Use streaming operators for debug/warnings to avoid qsizehint/int conflicts. Don't ignore return values from [[no_discard]] functions. Don't copy elements from containers that return references. Remove unused variables. Change-Id: I7a0bef94a5e828bd8facee0c625ec48c3d1f1bdb Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickflickable/tst_qquickflickable.cpp')
-rw-r--r--tests/auto/quick/qquickflickable/tst_qquickflickable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
index 9aed54b487..6c7c84c0cf 100644
--- a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
+++ b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
@@ -792,7 +792,7 @@ void tst_qquickflickable::resizeContent()
QSizeChangeListener sizeListener(fp->contentItem);
QMetaObject::invokeMethod(root, "resizeContent");
- for (const QSize sizeOnGeometryChanged : sizeListener) {
+ for (const QSize &sizeOnGeometryChanged : sizeListener) {
// Check that we have the correct size on all signals
QCOMPARE(sizeOnGeometryChanged, QSize(600, 600));
}