Commit f39e7d76 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile without deprecated method

parent fb182922
......@@ -1480,7 +1480,7 @@ void KGrGame::saveGame() // Save game ID, score and level.
QString saved;
QString day;
day = QLocale().dayName(today.dayOfWeek(), QLocale::ShortFormat);
saved = saved.sprintf
saved = QString::asprintf
("%-6s %03d %03ld %7ld %s %04d-%02d-%02d %02d:%02d\n",
qPrintable(prefix), level, lives, startScore,
......@@ -1752,7 +1752,7 @@ void KGrGame::checkHighScore()
QDate today = QDate::currentDate();
QString hsDate;
QString day = QLocale().dayName(today.dayOfWeek(), QLocale::ShortFormat);
hsDate = hsDate.sprintf
hsDate = QString::asprintf
("%s %04d-%02d-%02d",
today.year(), today.month(),;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment