mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
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:
@@ -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:
|
||||
|
@@ -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();
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user