mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01: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:
@@ -109,7 +109,7 @@ void AutofillCarts::addData()
|
||||
if(admin_cart_dialog->exec(&cartnum,RDCart::Audio,svc_svc->name(),NULL)) {
|
||||
sql=QString("insert into `AUTOFILLS` set ")+
|
||||
"`SERVICE`='"+RDEscapeString(svc_svc->name())+"',"+
|
||||
QString().sprintf("`CART_NUMBER`=%d",cartnum);
|
||||
QString::asprintf("`CART_NUMBER`=%d",cartnum);
|
||||
RDSqlQuery::apply(sql);
|
||||
QModelIndex index=svc_cart_model->addCart(cartnum);
|
||||
if(index.isValid()) {
|
||||
@@ -129,7 +129,7 @@ void AutofillCarts::deleteData()
|
||||
|
||||
QString sql=QString("delete from `AUTOFILLS` where ")+
|
||||
"`SERVICE`='"+RDEscapeString(svc_svc->name())+"' && "+
|
||||
QString().sprintf("`CART_NUMBER`=%u",
|
||||
QString::asprintf("`CART_NUMBER`=%u",
|
||||
svc_cart_model->cartNumber(rows.first()));
|
||||
RDSqlQuery::apply(sql);
|
||||
svc_cart_model->removeCart(rows.first());
|
||||
|
||||
Reference in New Issue
Block a user