2021-09-01 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up deprecation warnings for 'QString::sprintf()'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-01 19:59:37 -04:00
parent 327ceacc06
commit ac594cc68b
298 changed files with 2880 additions and 2879 deletions

View File

@@ -2,7 +2,7 @@
//
// Local macros for the Rivendell netcatcher daemon
//
// (C) Copyright 2002-2009,2016-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 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
@@ -61,8 +61,8 @@ void MainObject::RunLocalMacros(RDMacro *rml)
e=catch_events[event_ptr];
sql=QString("insert into `CUT_EVENTS` set ")+
"`CUT_NAME`='"+RDEscapeString(e.cutName())+"',"+
QString().sprintf("`NUMBER`=%u,",eventnum)+
QString().sprintf("`POINT`=%u",e.startTime().
QString::asprintf("`NUMBER`=%u,",eventnum)+
QString::asprintf("`POINT`=%u",e.startTime().
msecsTo(QTime::currentTime()));
q=new RDSqlQuery(sql);
delete q;