diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2020-11-25 16:20:15 +0100 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2020-12-28 11:54:53 +0100 |
commit | 5aec31639c503bfe00249c65a13d0f34f93edcc1 (patch) | |
tree | 11e4cc0fadb8fbeffd676f5c98b2482ec8fd0b88 /tests | |
parent | 93c791eaf39f2ed198c7dc188b8257b638b61465 (diff) |
Fix compilation warning in lancelot test
Use new qChecksum overload
Pick-to: 6.0
Change-Id: Ia2990e3491ee0c4029bba8e645109b03ac5001db
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp b/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp index 03bf0c3345..2c28b5c914 100644 --- a/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp +++ b/tests/manual/scenegraph_lancelot/scenegraph/tst_scenegraph.cpp @@ -270,7 +270,7 @@ quint16 tst_Scenegraph::checksumFileOrDir(const QString &path) QFile f(path); f.open(QIODevice::ReadOnly); QByteArray contents = f.readAll(); - return qChecksum(contents.constData(), uint(contents.size())); + return qChecksum(contents); } if (fi.isDir()) { static const QStringList nameFilters = QStringList() << "*.qml" << "*.cpp" << "*.png" << "*.jpg"; |