summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2022-09-30 12:42:25 +0300
committerJuha Vuolle <juha.vuolle@insta.fi>2022-10-04 08:11:56 +0300
commit20875dd4c3b970988426dcd0cdf88f9af828c59b (patch)
tree3e74f0d078c3bfc56c6ee696564d59bc2aff3313 /tests
parentc3a265592d7d4709998e5bf12d14a143aa0bf14f (diff)
Change (u)int to qsizetype (size_t) where applicable
Deliberately omitted: - QML interfacing code - public APIs - sensorfw, whose code is disabled/not practical to compile, and whose future is uncertain Fixes: QTBUG-107069 Change-Id: I84f0adf2f099da616ba6ff496fb84675bc845797 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/sensorclerk/collector.cpp2
-rw-r--r--tests/manual/sensorclerk/collector.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/sensorclerk/collector.cpp b/tests/manual/sensorclerk/collector.cpp
index 25365f51..1a8ab457 100644
--- a/tests/manual/sensorclerk/collector.cpp
+++ b/tests/manual/sensorclerk/collector.cpp
@@ -110,7 +110,7 @@ void Collector::startCollecting()
{
if (dataFile.exists()) {
fileCounter++;
- for (int i = 0; i < fileCounter; i++) {
+ for (size_t i = 0; i < fileCounter; i++) {
if (!QFileInfo(QString(QDir::tempPath()+"/sensordump_%1.dat").arg(fileCounter)).exists())
dataFile.setFileName(QString(QDir::tempPath()+"/sensordump_%1.dat").arg(fileCounter));
break;
diff --git a/tests/manual/sensorclerk/collector.h b/tests/manual/sensorclerk/collector.h
index 59af29fe..25cd2373 100644
--- a/tests/manual/sensorclerk/collector.h
+++ b/tests/manual/sensorclerk/collector.h
@@ -43,7 +43,7 @@ private:
QFile dataFile;
bool isActive;
- int fileCounter;
+ size_t fileCounter;
Q_DISABLE_COPY(Collector)
};