Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
flipmcf committed Dec 9, 2024
1 parent 81eeccc commit faff94b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rddisclookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ bool RDDiscLookup::ReadCdText(const QString &cdda_dev)
//
for(int i=0;i<lookup_record->tracks();i++) {
title_profile->setSource(tempDirectoryPath()+
QString().sprintf("/audio_%02d.inf",i+1));
QString::asprintf("/audio_%02d.inf",i+1));
str=title_profile->stringValue("","Albumtitle","");
str.remove("'");
if((!str.isEmpty())&&(str!="''")) {
Expand Down
8 changes: 4 additions & 4 deletions lib/rddiscrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void RDDiscRecord::clear()
{
for(int i=0;i<CDROM_LEADOUT;i++) {
disc_track_title[RDDiscRecord::LocalSource][i]=
QObject::tr("Track")+QString().sprintf(" %d",i+1);
QObject::tr("Track")+QString::asprintf(" %d",i+1);
disc_track_title[RDDiscRecord::RemoteSource][i]="";
}
for(int i=0;i<RDDiscRecord::LastSource;i++) {
Expand Down Expand Up @@ -391,7 +391,7 @@ void RDDiscRecord::setIsrc(int track,const QString &isrc)
}
}


/* TODO: Possibly unused - MM 12-05-2024 */
QString RDDiscRecord::summary(RDDiscRecord::DataSource src) const
{
QString ret;
Expand All @@ -405,7 +405,7 @@ QString RDDiscRecord::summary(RDDiscRecord::DataSource src) const
discArtist(src)+"<br>\n";
}
for(int i=0;i<tracks();i++) {
ret+="<strong>"+QObject::tr("Track")+QString().sprintf(" %2d: ",i+1)+
ret+="<strong>"+QObject::tr("Track")+QString::asprintf(" %2d: ",i+1)+
"</strong>"+trackTitle(src,i)+"<br>\n";
}

Expand All @@ -415,7 +415,7 @@ QString RDDiscRecord::summary(RDDiscRecord::DataSource src) const

QString RDDiscRecord::dump(RDDiscRecord::DataSource src) const
{
QString ret=QString().sprintf("RDDiscRecord::dump(%u)\n",src);
QString ret=QString::asprintf("RDDiscRecord::dump(%u)\n",src);

ret+=QString::asprintf("tracks: %d\n",tracks());
ret+=QString::asprintf("discLength: %d\n",discLength());
Expand Down

0 comments on commit faff94b

Please sign in to comment.