Unverified Commit c77b63ba authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8351 from patrickelectric/sprintf_deprecated

Remove deprecated QString::sprintf
parents 8287b37f 0b981daa
......@@ -222,7 +222,7 @@ QGCMapEngine::cacheTile(QString type, const QString& hash, const QByteArray& ima
QString
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()
int count = 1;
while (true) {
name = test;
name += QString().sprintf("%03d", count++);
name += QString::asprintf("%03d", count++);
if(!findName(name))
return name;
}
......
......@@ -57,7 +57,7 @@ void TCPLink::_writeDebugBytes(const QByteArray data)
for (int i=0, size = data.size(); i<size; i++)
{
unsigned char v = data[i];
bytes.append(QString().sprintf("%02x ", v));
bytes.append(QString::asprintf("%02x ", v));
if (data[i] > 31 && data[i] < 127)
{
ascii.append(data[i]);
......
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