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

@@ -676,7 +676,7 @@ void MainWidget::deleteData()
return;
}
sql=QString("delete from `RECORDINGS` where ")+
QString().sprintf("`ID`=%u",catch_recordings_model->recordId(rows.first()));
QString::asprintf("`ID`=%u",catch_recordings_model->recordId(rows.first()));
RDSqlQuery::apply(sql);
RDNotification *notify=new RDNotification(RDNotification::CatchEventType,
RDNotification::DeleteAction,
@@ -1086,7 +1086,7 @@ void MainWidget::filterChangedData(bool state)
break;
}
if(catch_type_box->currentIndex()<RDRecording::LastType) {
sql+=QString().sprintf("(`RECORDINGS`.`TYPE`=%d)&&",
sql+=QString::asprintf("(`RECORDINGS`.`TYPE`=%d)&&",
catch_type_box->currentIndex());
}