From d668a2d798d5d501995121e5ff6ef26970d605ed Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 14 Jan 2017 19:03:33 -0500 Subject: [PATCH] clang-tidy performance-unnecessary-value-param --- EKF/ekf_helper.cpp | 2 +- EKF/estimator_interface.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EKF/ekf_helper.cpp b/EKF/ekf_helper.cpp index 0f6ae7aa94..75db55cf99 100644 --- a/EKF/ekf_helper.cpp +++ b/EKF/ekf_helper.cpp @@ -868,7 +868,7 @@ Vector3f EstimatorInterface::cross_product(const Vector3f &vecIn1, const Vector3 } // calculate the inverse rotation matrix from a quaternion rotation -Matrix3f EstimatorInterface::quat_to_invrotmat(const Quaternion quat) +Matrix3f EstimatorInterface::quat_to_invrotmat(const Quaternion& quat) { float q00 = quat(0) * quat(0); float q11 = quat(1) * quat(1); diff --git a/EKF/estimator_interface.h b/EKF/estimator_interface.h index 7d1c2b974e..9c78499816 100644 --- a/EKF/estimator_interface.h +++ b/EKF/estimator_interface.h @@ -380,6 +380,6 @@ protected: Vector3f cross_product(const Vector3f &vecIn1, const Vector3f &vecIn2); // calculate the inverse rotation matrix from a quaternion rotation - Matrix3f quat_to_invrotmat(const Quaternion quat); + Matrix3f quat_to_invrotmat(const Quaternion& quat); };