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

@@ -57,7 +57,7 @@ bool RDReport::ExportSpinCount(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";
@@ -109,7 +109,7 @@ bool RDReport::ExportSpinCount(const QString &filename,const QDate &startdate,
*strm << RDReport::leftJustify(artists[it->first],30)+" ";
*strm << RDReport::leftJustify(albums[it->first],30)+" ";
*strm << RDReport::leftJustify(labels[it->first],29)+" ";
*strm << QString().sprintf("%5u",it->second);
*strm << QString::asprintf("%5u",it->second);
*strm << "\n";
}
delete strm;