diff options
author | Robert Loehning <robert.loehning@qt.io> | 2020-06-16 15:32:55 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2020-06-17 19:29:10 +0200 |
commit | 2242887e5c2c95e8b514f4b5fc5f25aba07f228d (patch) | |
tree | 98d1a613850652525f60911c690a6a988796c583 /src/gui/math3d | |
parent | 2f2340c97e91c50fca42673a0ad8d0d3c193366b (diff) |
Use dedicated function for chopping QByteArray
Change-Id: I03f5e782a3d5d63540db9a5fdd1d432e71b5eec5
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/gui/math3d')
-rw-r--r-- | src/gui/math3d/qmatrix4x4.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/math3d/qmatrix4x4.cpp b/src/gui/math3d/qmatrix4x4.cpp index 2f7931d099..a727d6d222 100644 --- a/src/gui/math3d/qmatrix4x4.cpp +++ b/src/gui/math3d/qmatrix4x4.cpp @@ -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. |