Commit 6418619e authored by Patrick José Pereira's avatar Patrick José Pereira

QtLocationPlugin: Move from deprecated sprintf to asprintf

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 9627428b
...@@ -222,7 +222,7 @@ QGCMapEngine::cacheTile(QString type, const QString& hash, const QByteArray& ima ...@@ -222,7 +222,7 @@ QGCMapEngine::cacheTile(QString type, const QString& hash, const QByteArray& ima
QString QString
QGCMapEngine::getTileHash(QString type, int x, int y, int z) QGCMapEngine::getTileHash(QString type, int x, int y, int z)
{ {
return QString().sprintf("%010d%08d%08d%03d", getQGCMapEngine()->urlFactory()->getIdFromType(type), x, y, z); return QString::asprintf("%010d%08d%08d%03d", getQGCMapEngine()->urlFactory()->getIdFromType(type), x, y, z);
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -553,7 +553,7 @@ QGCMapEngineManager::getUniqueName() ...@@ -553,7 +553,7 @@ QGCMapEngineManager::getUniqueName()
int count = 1; int count = 1;
while (true) { while (true) {
name = test; name = test;
name += QString().sprintf("%03d", count++); name += QString::asprintf("%03d", count++);
if(!findName(name)) if(!findName(name))
return name; return name;
} }
......
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