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

@@ -2,7 +2,7 @@
//
// 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
// 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:

View File

@@ -2,7 +2,7 @@
//
// 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
// 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();
//