mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02: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:
@@ -162,7 +162,7 @@ void Xport::ListCarts()
|
||||
where=RDCartSearchText(filter,group_name,"",false);
|
||||
}
|
||||
if(cart_type!=RDCart::All) {
|
||||
where+=QString().sprintf("&&(`TYPE`=%u)",cart_type);
|
||||
where+=QString::asprintf("&&(`TYPE`=%u)",cart_type);
|
||||
}
|
||||
sql=RDCart::xmlSql(include_cuts)+where+" order by `CART`.`NUMBER`";
|
||||
q=new RDSqlQuery(sql);
|
||||
@@ -297,7 +297,7 @@ void Xport::EditCart()
|
||||
|
||||
case RDCart::Macro:
|
||||
line=0;
|
||||
while(xport_post->getValue(QString().sprintf("MACRO%d",line++),&value)) {
|
||||
while(xport_post->getValue(QString::asprintf("MACRO%d",line++),&value)) {
|
||||
value=value.trimmed();
|
||||
if(value.right(1)!="!") {
|
||||
delete cart;
|
||||
@@ -529,7 +529,7 @@ void Xport::ListCuts()
|
||||
// Process Request
|
||||
//
|
||||
sql=RDCart::xmlSql(true)+
|
||||
QString().sprintf(" where `CART`.`NUMBER`=%u",cart_number);
|
||||
QString::asprintf(" where `CART`.`NUMBER`=%u",cart_number);
|
||||
q=new RDSqlQuery(sql);
|
||||
printf("Content-type: application/xml\n");
|
||||
printf("Status: 200\n\n");
|
||||
|
Reference in New Issue
Block a user