QGenericMatrix: remove copy ctor
The compiler-generated one is just fine. Change-Id: Iaacc56d4224c69b66823cc64640a00117c44d3cc Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
b089579dc3
commit
2447dd2659
@ -47,7 +47,6 @@ class QGenericMatrix
|
||||
public:
|
||||
QGenericMatrix();
|
||||
explicit QGenericMatrix(Qt::Initialization) {}
|
||||
QGenericMatrix(const QGenericMatrix<N, M, T>& other);
|
||||
explicit QGenericMatrix(const T *values);
|
||||
|
||||
const T& operator()(int row, int column) const;
|
||||
@ -107,14 +106,6 @@ Q_INLINE_TEMPLATE QGenericMatrix<N, M, T>::QGenericMatrix()
|
||||
setToIdentity();
|
||||
}
|
||||
|
||||
template <int N, int M, typename T>
|
||||
Q_INLINE_TEMPLATE QGenericMatrix<N, M, T>::QGenericMatrix(const QGenericMatrix<N, M, T>& other)
|
||||
{
|
||||
for (int col = 0; col < N; ++col)
|
||||
for (int row = 0; row < M; ++row)
|
||||
m[col][row] = other.m[col][row];
|
||||
}
|
||||
|
||||
template <int N, int M, typename T>
|
||||
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T>::QGenericMatrix(const T *values)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user