Permalink
Browse files

GeneralPane: Replace usages of obsolete QString member function sprintf

sprintf is listed as obsolete within the documentation for Qt 5. Instead,
it recommends using the asprintf member function, arg(), or QTextStream.
  • Loading branch information...
lioncash committed May 30, 2018
1 parent 24e0b4b commit bd585f738938b7d5a4276e6fac7137377a37668c
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Core/DolphinQt2/Settings/GeneralPane.cpp
@@ -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);
}

0 comments on commit bd585f7

Please sign in to comment.