mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +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:
@@ -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 ¶m,int value) const
|
||||
QString sql;
|
||||
|
||||
sql=QString("update `SYSTEM` set `")+
|
||||
param+QString().sprintf("`=%d",value);
|
||||
param+QString::asprintf("`=%d",value);
|
||||
RDSqlQuery::apply(sql);
|
||||
}
|
||||
|
Reference in New Issue
Block a user