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

@@ -490,7 +490,7 @@ bool EditDownload::CheckEvent(bool include_myself)
{
QString sql=QString("select `ID` from `RECORDINGS` where ")+
"(`STATION_NAME`='"+RDEscapeString(edit_event_widget->stationName())+"')&&"+
QString().sprintf("(`TYPE`=%d)&&",RDRecording::Download)+
QString::asprintf("(`TYPE`=%d)&&",RDRecording::Download)+
"(`START_TIME`='"+RDEscapeString(edit_event_widget->startTime().
toString("hh:mm:ss"))+"')&&"+
"(`URL`='"+RDEscapeString(edit_url_edit->text())+"')&&"+
@@ -517,7 +517,7 @@ bool EditDownload::CheckEvent(bool include_myself)
sql+="&&(`SAT`='Y')";
}
if(!include_myself) {
sql+=QString().sprintf("&&(`ID`!=%d)",edit_recording->id());
sql+=QString::asprintf("&&(`ID`!=%d)",edit_recording->id());
}
RDSqlQuery *q=new RDSqlQuery(sql);
bool res=!q->first();