Skip to content

Commit 97fda51

Browse files
committed
some AI findings
1 parent 52f3de8 commit 97fda51

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/uncertain/uelement.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <Eigen/Dense>
2525

2626
#include <cassert>
27-
#include <utility>
2827

2928
#include "geometry/skew.h"
3029
#include "matfun.h"
@@ -53,15 +52,15 @@ class uElement
5352

5453
public:
5554
//! Construct geometric element with N-vector and its covariance matrix
56-
uElement( Vector<double,N> z, Matrix<double,N,N> Sigma_zz)
57-
: m_val(std::move(z)), m_cov(std::move(Sigma_zz))
55+
uElement( const Vector<double,N> & z, const Matrix<double,N,N> & Sigma_zz)
56+
: m_val(z), m_cov(Sigma_zz)
5857
{
5958
assert( m_val.size()==m_cov.cols() );
6059
assert( isCovMat( m_cov) );
6160
}
6261
uElement ( const uElement &) = default; //!< Copy constructor
6362
uElement( uElement &&) = default; //!< Move constructor
64-
uElement & operator= ( const uElement &&) = delete; //!< Move assignment
63+
uElement & operator= (uElement &&) = delete; //!< Move assignment
6564

6665
~uElement() = default;
6766

0 commit comments

Comments
 (0)