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

* Cleaned up compiler warnings in 'utils/rdsinglestart/'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2025-04-26 18:42:14 -04:00
parent f507d55955
commit 024a0cd78b
2 changed files with 6 additions and 4 deletions

View File

@ -25022,3 +25022,5 @@
* Cleaned up compiler warnings in 'utils/rdimport/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'utils/rdselect_helper/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'utils/rdsinglestart/'.

View File

@ -2,7 +2,7 @@
//
// Start a program so as to allow only a single instance.
//
// (C) Copyright 2022 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2022-2025 Fred Gleason <fredg@paravelsystems.com>
//
// 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
@ -42,7 +42,7 @@ MainObject::MainObject(QObject *parent)
}
for(unsigned i=0;i<(cmd->keys()-1);i++) {
}
QStringList f0=cmd->key(cmd->keys()-1).split("/",QString::SkipEmptyParts);
QStringList f0=cmd->key(cmd->keys()-1).split("/",Qt::SkipEmptyParts);
QString program=f0.last().trimmed();
//
@ -70,9 +70,9 @@ MainObject::MainObject(QObject *parent)
}
bool found=false;
f0=QString::fromUtf8(proc->readAllStandardOutput()).
split("\n",QString::SkipEmptyParts);
split("\n",Qt::SkipEmptyParts);
for(int i=0;i<f0.size();i++) {
QStringList f1=f0.at(i).split(" ",QString::SkipEmptyParts);
QStringList f1=f0.at(i).split(" ",Qt::SkipEmptyParts);
if(f1.size()>=4) {
if(f1.at(3).trimmed().toLower()==program) {
Raise(f1.at(0));