Merge pull request #7028 from lioncash/obsolete

GeneralPane: Replace usages of obsolete QString member function sprintf
This commit is contained in:
Léo Lam 2018-05-30 15:02:41 +02:00 committed by GitHub
commit bdfd331355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -135,9 +135,9 @@ void GeneralPane::CreateBasic()
{
QString str;
if (i != 100)
str.sprintf("%i%%", i);
str = QStringLiteral("%1%").arg(i);
else
str.sprintf(tr("%i%% (Normal Speed)").toStdString().c_str(), i);
str = tr("%1% (Normal Speed)").arg(i);
m_combobox_speedlimit->addItem(str);
}