mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Replace use of deprecated sprintf
This commit is contained in:
parent
0d038be031
commit
044f08b931
1 changed files with 7 additions and 4 deletions
|
@ -443,10 +443,13 @@ void OctreeElement::printDebugDetails(const char* label) const {
|
|||
}
|
||||
|
||||
QString resultString;
|
||||
resultString.sprintf("%s - Voxel at corner=(%f,%f,%f) size=%f\n isLeaf=%s isDirty=%s shouldRender=%s\n children=", label,
|
||||
(double)_cube.getCorner().x, (double)_cube.getCorner().y, (double)_cube.getCorner().z,
|
||||
(double)_cube.getScale(),
|
||||
debug::valueOf(isLeaf()), debug::valueOf(isDirty()), debug::valueOf(getShouldRender()));
|
||||
qCDebug(octree).noquote() << label
|
||||
<< QString(" - Voxel at corner=(%1,%2,%3)").arg((double)_cube.getCorner().x, (double)_cube.getCorner().y, (double)_cube.getCorner().z)
|
||||
<< "size=" << (double)_cube.getScale()
|
||||
<< " isLeaf=" << debug::valueOf(isLeaf())
|
||||
<< " isDirty=" << debug::valueOf(isDirty())
|
||||
<< " shouldRender=" << debug::valueOf(getShouldRender());
|
||||
|
||||
qCDebug(octree).nospace() << resultString;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue