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

@@ -126,7 +126,7 @@ unsigned RDSystem::maxPostLength() const
void RDSystem::setMaxPostLength(unsigned bytes) const
{
QString sql=
QString().sprintf("update `SYSTEM` set `MAX_POST_LENGTH`=%u",bytes);
QString::asprintf("update `SYSTEM` set `MAX_POST_LENGTH`=%u",bytes);
RDSqlQuery::apply(sql);
}
@@ -307,6 +307,6 @@ void RDSystem::SetRow(const QString &param,int value) const
QString sql;
sql=QString("update `SYSTEM` set `")+
param+QString().sprintf("`=%d",value);
param+QString::asprintf("`=%d",value);
RDSqlQuery::apply(sql);
}