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

@@ -129,7 +129,7 @@ void ListHostvars::addData()
}
else {
sql=QString("delete from `HOSTVARS` ")+
QString().sprintf("where `ID`=%d",id);
QString::asprintf("where `ID`=%d",id);
RDSqlQuery::apply(sql);
}
}
@@ -165,7 +165,7 @@ void ListHostvars::deleteData()
return;
}
QString sql=QString("delete from `HOSTVARS` ")+
QString().sprintf("where `ID`=%d",list_model->varId(rows.first()));
QString::asprintf("where `ID`=%d",list_model->varId(rows.first()));
RDSqlQuery::apply(sql);
list_model->removeVar(rows.first());
}