diff options
author | Simon Rettberg | 2022-06-20 16:25:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-06-20 16:25:54 +0200 |
commit | 72a05e138ec579cd567939eb0b33b0ea476820fb (patch) | |
tree | 8d94b35d043430dcf952e50082496f90db9e3ad7 /src/speedcheck.cpp | |
parent | Fix use after free (diff) | |
download | speedcheck-72a05e138ec579cd567939eb0b33b0ea476820fb.tar.gz speedcheck-72a05e138ec579cd567939eb0b33b0ea476820fb.tar.xz speedcheck-72a05e138ec579cd567939eb0b33b0ea476820fb.zip |
Fix deprecation warnings where possible, make remaining ones -Wno-error
Diffstat (limited to 'src/speedcheck.cpp')
-rw-r--r-- | src/speedcheck.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/speedcheck.cpp b/src/speedcheck.cpp index b4dd718..aa02d47 100644 --- a/src/speedcheck.cpp +++ b/src/speedcheck.cpp @@ -21,7 +21,6 @@ SpeedCheck::SpeedCheck(QString fileName) connect(_ui->btnQuit, SIGNAL(clicked(bool)), this, SLOT(quitClicked(bool))); _timer.setInterval(200); connect(&_timer, SIGNAL(timeout()), this, SLOT(updateTimer())); - qsrand((uint)QCoreApplication::applicationPid()); } SpeedCheck::~SpeedCheck() @@ -39,7 +38,7 @@ void SpeedCheck::startClicked(bool) { QFile *file = new QFile(_fileName); if (!file->open(QIODevice::ReadOnly)) { - QMessageBox::critical(this, trUtf8("Error"), trUtf8("Could not open %1 for reading.").arg(_fileName)); + QMessageBox::critical(this, tr("Error"), tr("Could not open %1 for reading.").arg(_fileName)); return; } _ui->picCpu->setDataSource(new CpuLoad()); |