summaryrefslogtreecommitdiff
path: root/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-07-20 16:39:49 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-07-22 11:14:54 +0200
commit354d59cd8e7972525e5978d970ef5e64edb14898 (patch)
treebf795efd936e0c2bec32d77310855b030775bd6d /tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
parent1da76e21a0a39295c4ff41f8f268dc0eb854a482 (diff)
downloadqtlocation-354d59cd8e7972525e5978d970ef5e64edb14898.tar.gz
Purge uses of legacy cruft before qtbase removes it
A use of deprecated qrand() was in a comment, so remove it. A use of QT_BEGIN_HEADER wasn't matched by QT_END_HEADER and it's now a no-op anyway. Pick-to: 5.15 Change-Id: Ie79c181e5f194c00949bfd7d2372f2d246b53180 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp')
-rw-r--r--tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
index 939225a7..e91cfc30 100644
--- a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
+++ b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
@@ -60,7 +60,6 @@ void QDeclarativeLocationTestModel::timerFired()
//qDebug() << "timer fired" ;
repopulate();
if (crazyMode_) {
- //qDebug() << "raw randomw value: " << qrand();
int delay = (QRandomGenerator::global()->bounded(uint(INT_MAX) + 1) % crazyLevel_); // writing software is exact science
delay = qMax(1000, delay); // 3 ms at minimum
qDebug() << "starting timer with : " << delay;