Commit 9552d964 authored by Patrick José Pereira's avatar Patrick José Pereira

QGCTileCacheWorker: Fix deprecated QString::sprintf

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 92370b40
...@@ -736,8 +736,7 @@ QGCCacheWorker::_importSets(QGCMapTask* mtask) ...@@ -736,8 +736,7 @@ QGCCacheWorker::_importSets(QGCMapTask* mtask)
int testCount = 0; int testCount = 0;
//-- Set with this name already exists. Make name unique. //-- Set with this name already exists. Make name unique.
while (true) { while (true) {
QString testName; auto testName = QString::asprintf("%s %02d", name.toLatin1().data(), ++testCount);
testName.sprintf("%s %02d", name.toLatin1().data(), ++testCount);
if(!_findTileSetID(testName, insertSetID) || testCount > 99) { if(!_findTileSetID(testName, insertSetID) || testCount > 99) {
name = testName; name = testName;
break; break;
......
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