diff --git a/ChangeLog b/ChangeLog index ecc5c318..af7da600 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25012,3 +25012,5 @@ * Cleaned up compiler warnings in 'tests/'. 2025-04-26 Fred Gleason * Cleaned up compiler warnings in 'utils/alsaconfig/'. +2025-04-26 Fred Gleason + * Cleaned up compiler warnings in 'utils/rdclilogedit/'. diff --git a/utils/rdclilogedit/operations.cpp b/utils/rdclilogedit/operations.cpp index 248a03a7..c63d1021 100644 --- a/utils/rdclilogedit/operations.cpp +++ b/utils/rdclilogedit/operations.cpp @@ -2,7 +2,7 @@ // // A command-line log editor for Rivendell // -// (C) Copyright 2016-2022 Fred Gleason +// (C) Copyright 2016-2025 Fred Gleason // // 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 @@ -275,15 +275,13 @@ QString MainObject::ListLine(RDLogModel *model,int line) const switch(logline->timeType()) { case RDLogLine::Hard: - ret+=QString(). - sprintf("T%s ",logline->startTime(RDLogLine::Logged). - toString("hh:mm:ss").toUtf8().constData()); + ret+=QString::asprintf("T%s ",logline->startTime(RDLogLine::Logged). + toString("hh:mm:ss").toUtf8().constData()); break; case RDLogLine::Relative: - ret+=QString(). - sprintf(" %s ",model->blockStartTime(line). - toString("hh:mm:ss").toUtf8().constData()); + ret+=QString::asprintf(" %s ",model->blockStartTime(line). + toString("hh:mm:ss").toUtf8().constData()); break; case RDLogLine::NoTime: diff --git a/utils/rdclilogedit/parser.cpp b/utils/rdclilogedit/parser.cpp index 35e9e815..d25ada56 100644 --- a/utils/rdclilogedit/parser.cpp +++ b/utils/rdclilogedit/parser.cpp @@ -2,7 +2,7 @@ // // A command-line log editor for Rivendell // -// (C) Copyright 2016-2021 Fred Gleason +// (C) Copyright 2016-2025 Fred Gleason // // 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 @@ -39,7 +39,7 @@ void MainObject::DispatchCommand(QString cmd) overwrite=true; cmd=cmd.left(cmd.length()-1).trimmed(); } - cmds=cmd.split(" ",QString::SkipEmptyParts); + cmds=cmd.split(" ",Qt::SkipEmptyParts); verb=cmds[0].toLower(); //