diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-04-18 16:22:46 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-04-20 05:40:59 +0000 |
commit | 3dcc075f4a5efce348a6fa00cf5a0adef97b1089 (patch) | |
tree | 5739f64af10ac72ad4fb147f7fdcb92b440a8622 /src/gui/math3d | |
parent | 870964895baadd013570d626d9e8ebc9d57fee94 (diff) |
Move Q_REQUIRED_RESULT to its correct position
That's before the return type or static, inline, constexpr or such
keywords (if any).
Perl Script:
s/^(\s+)(.*) Q_REQUIRED_RESULT(;)?(\s*\/\/.*)?$/\1Q_REQUIRED_RESULT \2\3\4/
Change-Id: I7814054a102a407d876ffffd14b6a16182f159e2
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/math3d')
-rw-r--r-- | src/gui/math3d/qgenericmatrix.h | 2 | ||||
-rw-r--r-- | src/gui/math3d/qquaternion.h | 6 | ||||
-rw-r--r-- | src/gui/math3d/qvector2d.h | 2 | ||||
-rw-r--r-- | src/gui/math3d/qvector4d.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/math3d/qgenericmatrix.h b/src/gui/math3d/qgenericmatrix.h index 9a1ab54124..6a2a9e5bae 100644 --- a/src/gui/math3d/qgenericmatrix.h +++ b/src/gui/math3d/qgenericmatrix.h @@ -64,7 +64,7 @@ public: void fill(T value); - QGenericMatrix<M, N, T> transposed() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QGenericMatrix<M, N, T> transposed() const; QGenericMatrix<N, M, T>& operator+=(const QGenericMatrix<N, M, T>& other); QGenericMatrix<N, M, T>& operator-=(const QGenericMatrix<N, M, T>& other); diff --git a/src/gui/math3d/qquaternion.h b/src/gui/math3d/qquaternion.h index eff427117f..7f7f89db4d 100644 --- a/src/gui/math3d/qquaternion.h +++ b/src/gui/math3d/qquaternion.h @@ -90,14 +90,14 @@ public: float length() const; float lengthSquared() const; - QQuaternion normalized() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QQuaternion normalized() const; void normalize(); inline QQuaternion inverted() const; - QQuaternion conjugated() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QQuaternion conjugated() const; #if QT_DEPRECATED_SINCE(5, 5) - QT_DEPRECATED QQuaternion conjugate() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QT_DEPRECATED QQuaternion conjugate() const; #endif QVector3D rotatedVector(const QVector3D& vector) const; diff --git a/src/gui/math3d/qvector2d.h b/src/gui/math3d/qvector2d.h index bdb56c9c1f..5e0394b998 100644 --- a/src/gui/math3d/qvector2d.h +++ b/src/gui/math3d/qvector2d.h @@ -82,7 +82,7 @@ public: float length() const; float lengthSquared() const; //In Qt 6 convert to inline and constexpr - QVector2D normalized() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QVector2D normalized() const; void normalize(); float distanceToPoint(const QVector2D &point) const; diff --git a/src/gui/math3d/qvector4d.h b/src/gui/math3d/qvector4d.h index f63b2f141b..be373aa806 100644 --- a/src/gui/math3d/qvector4d.h +++ b/src/gui/math3d/qvector4d.h @@ -88,7 +88,7 @@ public: float length() const; float lengthSquared() const; //In Qt 6 convert to inline and constexpr - QVector4D normalized() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QVector4D normalized() const; void normalize(); QVector4D &operator+=(const QVector4D &vector); |