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

@@ -195,7 +195,7 @@ void MainObject::GetAudio()
"`CUTS`.`CUT_NAME` from "+
"`CART` left join `CUTS` on `CART`.`NUMBER`=`CUTS`.`CART_NUMBER` where "+
"`CART`.`TITLE`='"+RDEscapeString(title)+"' && "+
QString().sprintf("`CART`.`TYPE`=%d ",RDCart::Audio)+
QString::asprintf("`CART`.`TYPE`=%d ",RDCart::Audio)+
"order by `CUTS`.`CUT_NAME`";
RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) {
@@ -642,7 +642,7 @@ void MainObject::ServeForm()
"from `GROUPS` left join `USER_PERMS` "+
"on `GROUPS`.`NAME`=`USER_PERMS`.`GROUP_NAME` where "+
"`USER_PERMS`.`USER_NAME`='"+RDEscapeString(rda->user()->name())+"' && "+
QString().sprintf("`GROUPS`.`DEFAULT_CART_TYPE`=%u && ",RDCart::Audio)+
QString::asprintf("`GROUPS`.`DEFAULT_CART_TYPE`=%u && ",RDCart::Audio)+
"`GROUPS`.`DEFAULT_LOW_CART`>0 && "+
"`GROUPS`.`DEFAULT_HIGH_CART`>0 "+
"order by `GROUPS`.`NAME`";