Commit d5fcc1ab authored by Jan's avatar Jan

Fixed some sprintf warnings

parent 9a333480
......@@ -156,8 +156,7 @@ GLSL::Program* ACG::ShaderCache::getProgram( const ShaderGenDesc* _desc, const s
{
static int counter = 0;
QString fileName;
fileName.sprintf("shader_%02d.glsl", counter++);
QString fileName = QString("shader_%1.glsl").arg(counter++,2,10,QLatin1Char('0')) ;
fileName = dbgOutputDir_ + QDir::separator() + fileName;
QFile fileOut(fileName);
......@@ -517,8 +516,7 @@ GLSL::Program* ACG::ShaderCache::getComputeProgram(const char* _computeShaderFil
}
}
QString fnv_string;
fnv_string.sprintf("%X", fnv_hash);
QString fnv_string = QString::number(fnv_hash,16).toUpper();
std::string dumpFilename = QString(dbgOutputDir_ + QDir::separator() + fileInfo.fileName() + fnv_string).toStdString();
......
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