mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-01 22:30:13 +01: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:
@@ -182,11 +182,11 @@ void LiveWireLwrpGpio::connectedData(unsigned id)
|
||||
{
|
||||
QString sql;
|
||||
|
||||
sql=QString().sprintf("update `MATRICES` set `GPIS`=%u,`GPOS`=%u ",
|
||||
sql=QString::asprintf("update `MATRICES` set `GPIS`=%u,`GPOS`=%u ",
|
||||
RD_LIVEWIRE_GPIO_BUNDLE_SIZE*gpio_livewire->gpis(),
|
||||
RD_LIVEWIRE_GPIO_BUNDLE_SIZE*gpio_livewire->gpos())+
|
||||
"where (`STATION_NAME`='"+RDEscapeString(stationName())+"')&&"+
|
||||
QString().sprintf("(`MATRIX`=%u)",matrixNumber());
|
||||
QString::asprintf("(`MATRIX`=%u)",matrixNumber());
|
||||
RDSqlQuery::apply(sql);
|
||||
|
||||
for(int i=0;i<RD_LIVEWIRE_GPIO_BUNDLE_SIZE*gpio_livewire->gpis();i++) {
|
||||
|
||||
Reference in New Issue
Block a user