diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-03-06 22:41:26 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-14 08:04:12 +0100 |
commit | b8112c8526a6e261c6e00bdb4fe6ceef3876d01f (patch) | |
tree | 414d6b322275bfe454ade0d224c2dc04131d3ccc /src/gui/math3d | |
parent | 91248b0f3b40aaebb0e02a127ee936b581b10eab (diff) |
QtGui: make some constructors explicit
This is a semi-automatic search, so I'm
reasonably sure that all the exported ones
have been caught.
Change-Id: I5b122db2498dbb2aee50c7ad95c67e708aade45b
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/math3d')
-rw-r--r-- | src/gui/math3d/qgenericmatrix.h | 2 | ||||
-rw-r--r-- | src/gui/math3d/qmatrix4x4.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/math3d/qgenericmatrix.h b/src/gui/math3d/qgenericmatrix.h index 0a2446587a..b987ab2334 100644 --- a/src/gui/math3d/qgenericmatrix.h +++ b/src/gui/math3d/qgenericmatrix.h @@ -102,7 +102,7 @@ private: #endif T m[N][M]; // Column-major order to match OpenGL. - QGenericMatrix(int) {} // Construct without initializing identity matrix. + explicit QGenericMatrix(int) {} // Construct without initializing identity matrix. #if !defined(Q_NO_TEMPLATE_FRIENDS) template <int NN, int MM, typename TT> diff --git a/src/gui/math3d/qmatrix4x4.h b/src/gui/math3d/qmatrix4x4.h index b80fc86f45..8353adfab1 100644 --- a/src/gui/math3d/qmatrix4x4.h +++ b/src/gui/math3d/qmatrix4x4.h @@ -201,7 +201,7 @@ private: }; // Construct without initializing identity matrix. - QMatrix4x4(int) { } + explicit QMatrix4x4(int) { } QMatrix4x4 orthonormalInverse() const; |