mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +02:00
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:
@@ -54,7 +54,7 @@ bool RDReport::ExportTechnical(const QString &filename,const QDate &startdate,
|
||||
QTextStream *strm=new QTextStream(file);
|
||||
strm->setCodec("UTF-8");
|
||||
if(useLeadingZeros()) {
|
||||
cart_fmt=QString().sprintf("%%0%uu",cartDigits());
|
||||
cart_fmt=QString::asprintf("%%0%uu",cartDigits());
|
||||
}
|
||||
else {
|
||||
cart_fmt="%6u";
|
||||
@@ -112,7 +112,7 @@ bool RDReport::ExportTechnical(const QString &filename,const QDate &startdate,
|
||||
//
|
||||
while(q->next()) {
|
||||
if(q->value(12).toInt()>0) {
|
||||
cut=QString().sprintf("%03d",q->value(12).toInt());
|
||||
cut=QString::asprintf("%03d",q->value(12).toInt());
|
||||
}
|
||||
else {
|
||||
if((RDAirPlayConf::TrafficAction)q->value(3).toInt()==
|
||||
@@ -123,7 +123,7 @@ bool RDReport::ExportTechnical(const QString &filename,const QDate &startdate,
|
||||
cut=" ";
|
||||
}
|
||||
}
|
||||
cart_num=QString().sprintf(cart_fmt.toUtf8(),q->value(1).toUInt());
|
||||
cart_num=QString::asprintf(cart_fmt.toUtf8(),q->value(1).toUInt());
|
||||
*strm << rda->timeString(q->value(2).toTime()," ")+" ";
|
||||
*strm << cart_num+" ";
|
||||
*strm << cut+" ";
|
||||
|
Reference in New Issue
Block a user