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

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

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2025-04-26 18:08:32 -04:00
parent 193c496079
commit 3afa5914a4
3 changed files with 9 additions and 9 deletions

View File

@@ -25012,3 +25012,5 @@
* Cleaned up compiler warnings in 'tests/'. * Cleaned up compiler warnings in 'tests/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com> 2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'utils/alsaconfig/'. * Cleaned up compiler warnings in 'utils/alsaconfig/'.
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'utils/rdclilogedit/'.

View File

@@ -2,7 +2,7 @@
// //
// A command-line log editor for Rivendell // A command-line log editor for Rivendell
// //
// (C) Copyright 2016-2022 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2016-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
@@ -275,15 +275,13 @@ QString MainObject::ListLine(RDLogModel *model,int line) const
switch(logline->timeType()) { switch(logline->timeType()) {
case RDLogLine::Hard: case RDLogLine::Hard:
ret+=QString(). ret+=QString::asprintf("T%s ",logline->startTime(RDLogLine::Logged).
sprintf("T%s ",logline->startTime(RDLogLine::Logged). toString("hh:mm:ss").toUtf8().constData());
toString("hh:mm:ss").toUtf8().constData());
break; break;
case RDLogLine::Relative: case RDLogLine::Relative:
ret+=QString(). ret+=QString::asprintf(" %s ",model->blockStartTime(line).
sprintf(" %s ",model->blockStartTime(line). toString("hh:mm:ss").toUtf8().constData());
toString("hh:mm:ss").toUtf8().constData());
break; break;
case RDLogLine::NoTime: case RDLogLine::NoTime:

View File

@@ -2,7 +2,7 @@
// //
// A command-line log editor for Rivendell // A command-line log editor for Rivendell
// //
// (C) Copyright 2016-2021 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2016-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
@@ -39,7 +39,7 @@ void MainObject::DispatchCommand(QString cmd)
overwrite=true; overwrite=true;
cmd=cmd.left(cmd.length()-1).trimmed(); cmd=cmd.left(cmd.length()-1).trimmed();
} }
cmds=cmd.split(" ",QString::SkipEmptyParts); cmds=cmd.split(" ",Qt::SkipEmptyParts);
verb=cmds[0].toLower(); verb=cmds[0].toLower();
// //