From 2447dd26590df3a58adbaee67e960f9ba75c130a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 23 Apr 2015 13:12:11 +0200 Subject: QGenericMatrix: remove copy ctor The compiler-generated one is just fine. Change-Id: Iaacc56d4224c69b66823cc64640a00117c44d3cc Reviewed-by: Konstantin Ritt Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/gui/math3d/qgenericmatrix.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/gui') diff --git a/src/gui/math3d/qgenericmatrix.h b/src/gui/math3d/qgenericmatrix.h index 89bc09f544..d23ff86f64 100644 --- a/src/gui/math3d/qgenericmatrix.h +++ b/src/gui/math3d/qgenericmatrix.h @@ -47,7 +47,6 @@ class QGenericMatrix public: QGenericMatrix(); explicit QGenericMatrix(Qt::Initialization) {} - QGenericMatrix(const QGenericMatrix& other); explicit QGenericMatrix(const T *values); const T& operator()(int row, int column) const; @@ -107,14 +106,6 @@ Q_INLINE_TEMPLATE QGenericMatrix::QGenericMatrix() setToIdentity(); } -template -Q_INLINE_TEMPLATE QGenericMatrix::QGenericMatrix(const QGenericMatrix& other) -{ - for (int col = 0; col < N; ++col) - for (int row = 0; row < M; ++row) - m[col][row] = other.m[col][row]; -} - template Q_OUTOFLINE_TEMPLATE QGenericMatrix::QGenericMatrix(const T *values) { -- cgit v1.2.3