mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 01:23:55 +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;
|
QString resultString;
|
||||||
resultString.sprintf("%s - Voxel at corner=(%f,%f,%f) size=%f\n isLeaf=%s isDirty=%s shouldRender=%s\n children=", label,
|
qCDebug(octree).noquote() << label
|
||||||
(double)_cube.getCorner().x, (double)_cube.getCorner().y, (double)_cube.getCorner().z,
|
<< QString(" - Voxel at corner=(%1,%2,%3)").arg((double)_cube.getCorner().x, (double)_cube.getCorner().y, (double)_cube.getCorner().z)
|
||||||
(double)_cube.getScale(),
|
<< "size=" << (double)_cube.getScale()
|
||||||
debug::valueOf(isLeaf()), debug::valueOf(isDirty()), debug::valueOf(getShouldRender()));
|
<< " isLeaf=" << debug::valueOf(isLeaf())
|
||||||
|
<< " isDirty=" << debug::valueOf(isDirty())
|
||||||
|
<< " shouldRender=" << debug::valueOf(getShouldRender());
|
||||||
|
|
||||||
qCDebug(octree).nospace() << resultString;
|
qCDebug(octree).nospace() << resultString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue