diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-06-02 05:10:43 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-06-02 05:10:43 (GMT) |
commit | 63fba94e074c29f17e35c7cf9133d1878b18401f (patch) | |
tree | 3e084826b106dffe1f6eab60fd86b669b810d187 /src/gui/math3d | |
parent | 3245f19f8d3abbcba5fcd9adc3fc984ad4c7ddcb (diff) | |
download | Qt-63fba94e074c29f17e35c7cf9133d1878b18401f.zip Qt-63fba94e074c29f17e35c7cf9133d1878b18401f.tar.gz Qt-63fba94e074c29f17e35c7cf9133d1878b18401f.tar.bz2 |
Fix signature for QGenericMatrix::fill()
The signature was using qreal, when it should have used T.
Diffstat (limited to 'src/gui/math3d')
-rw-r--r-- | src/gui/math3d/qgenericmatrix.cpp | 2 | ||||
-rw-r--r-- | src/gui/math3d/qgenericmatrix.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/math3d/qgenericmatrix.cpp b/src/gui/math3d/qgenericmatrix.cpp index a77ca42..6ecd878 100644 --- a/src/gui/math3d/qgenericmatrix.cpp +++ b/src/gui/math3d/qgenericmatrix.cpp @@ -116,7 +116,7 @@ QT_BEGIN_NAMESPACE */ /*! - \fn void QGenericMatrix::fill(qreal value) + \fn void QGenericMatrix::fill(T value) Fills all elements of this matrix with \a value. */ diff --git a/src/gui/math3d/qgenericmatrix.h b/src/gui/math3d/qgenericmatrix.h index d0b22de..b4d3707 100644 --- a/src/gui/math3d/qgenericmatrix.h +++ b/src/gui/math3d/qgenericmatrix.h @@ -65,7 +65,7 @@ public: bool isIdentity() const; void setIdentity(); - void fill(qreal value); + void fill(T value); QGenericMatrix<M, N, T, InnerT> transposed() const; @@ -175,7 +175,7 @@ Q_OUTOFLINE_TEMPLATE void QGenericMatrix<N, M, T, InnerT>::setIdentity() } template <int N, int M, typename T, typename InnerT> -Q_OUTOFLINE_TEMPLATE void QGenericMatrix<N, M, T, InnerT>::fill(qreal value) +Q_OUTOFLINE_TEMPLATE void QGenericMatrix<N, M, T, InnerT>::fill(T value) { for (int col = 0; col < N; ++col) for (int row = 0; row < M; ++row) |