2025-04-26 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compiler warnings in 'tests/'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2025-04-26 18:04:01 -04:00
parent 345192b6cd
commit ae46abe9ce
3 changed files with 7 additions and 5 deletions

View File

@@ -25008,3 +25008,5 @@
* Cleaned up compiler warnings in 'rdselect/'. * Cleaned up compiler warnings in 'rdselect/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com> 2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'ripcd/'. * Cleaned up compiler warnings in 'ripcd/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'tests/'.

View File

@@ -2,7 +2,7 @@
// //
// Test harness for RDWaveWidget // Test harness for RDWaveWidget
// //
// (C) Copyright 2021-2022 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2021-2025 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as // it under the terms of the GNU General Public License version 2 as
@@ -46,7 +46,7 @@ MainWidget::MainWidget(QWidget *parent)
// //
for(unsigned i=0;i<rda->cmdSwitch()->keys();i++) { for(unsigned i=0;i<rda->cmdSwitch()->keys();i++) {
if(rda->cmdSwitch()->key(i)=="--input-meter") { if(rda->cmdSwitch()->key(i)=="--input-meter") {
QStringList f0=rda->cmdSwitch()->value(i).split(":",QString::KeepEmptyParts); QStringList f0=rda->cmdSwitch()->value(i).split(":",Qt::KeepEmptyParts);
if(f0.size()<3) { if(f0.size()<3) {
fprintf(stderr,"meterstrip_test: invalid --input-meter arguments\n"); fprintf(stderr,"meterstrip_test: invalid --input-meter arguments\n");
exit(RDApplication::ExitInvalidOption); exit(RDApplication::ExitInvalidOption);
@@ -68,7 +68,7 @@ MainWidget::MainWidget(QWidget *parent)
rda->cmdSwitch()->setProcessed(i,true); rda->cmdSwitch()->setProcessed(i,true);
} }
if(rda->cmdSwitch()->key(i)=="--output-meter") { if(rda->cmdSwitch()->key(i)=="--output-meter") {
QStringList f0=rda->cmdSwitch()->value(i).split(":",QString::KeepEmptyParts); QStringList f0=rda->cmdSwitch()->value(i).split(":",Qt::KeepEmptyParts);
if(f0.size()<3) { if(f0.size()<3) {
fprintf(stderr,"meterstrip_test: invalid --output-meter arguments\n"); fprintf(stderr,"meterstrip_test: invalid --output-meter arguments\n");
exit(RDApplication::ExitInvalidOption); exit(RDApplication::ExitInvalidOption);

View File

@@ -2,7 +2,7 @@
// //
// Test the RDTimeEngine class // Test the RDTimeEngine class
// //
// (C) Copyright 2021-2023 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2021-2025 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as // it under the terms of the GNU General Public License version 2 as
@@ -56,7 +56,7 @@ MainObject::MainObject(QObject *parent)
int id; int id;
QTime time; QTime time;
QStringList f0= QStringList f0=
rda->cmdSwitch()->value(i).split(":",QString::SkipEmptyParts); rda->cmdSwitch()->value(i).split(":",Qt::SkipEmptyParts);
if(f0.size()!=4) { if(f0.size()!=4) {
fprintf(stderr,"timeengine_test: invalid argument format\n"); fprintf(stderr,"timeengine_test: invalid argument format\n");
exit(1); exit(1);