Use dedicated function for chopping QByteArray

Change-Id: I03f5e782a3d5d63540db9a5fdd1d432e71b5eec5
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
bb10
Robert Loehning 2020-06-16 15:32:55 +02:00
parent 2f2340c97e
commit 2242887e5c
1 changed files with 1 additions and 2 deletions

View File

@ -2002,8 +2002,7 @@ QDebug operator<<(QDebug dbg, const QMatrix4x4 &m)
bits += "Rotation,";
if ((m.flagBits & QMatrix4x4::Perspective) != 0)
bits += "Perspective,";
if (bits.size() > 0)
bits = bits.left(bits.size() - 1);
bits.chop(1);
}
// Output in row-major order because it is more human-readable.