Skip to content

Commit

Permalink
Replace sprintf() with QString().arg() in vaxml.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
alanspencer committed Apr 14, 2020
1 parent 842beba commit 1063765
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SPIERSview/src/vaxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,15 +1263,16 @@ bool VAXML::writeVAXML(QString fname, bool mode) //mode true means this is part
out << "<position>" << o->Position << "</position>\n";


QString fname2;
fname2.sprintf("%d", o->Index + 1);
QString fname2 = QString("%1").arg(o->Index + 1);
if (!(o->Name.isEmpty()))
{
fname2.append("-");
fname2.append(o->Name);
}
fname2.append(".stl");

out << ("<file>" + encode(f.baseName() + "_stl/" + fname2) + "</file>\n");

//DON'T write a matrix - should all be identity now, as export to STL matrixes them...
//DON'T write a URL (obviously)
//out<<"<matrix>";
Expand Down

0 comments on commit 1063765

Please sign in to comment.