From 1bcf48bd82559369e1eeac3578d0a073fec2e434 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 30 Aug 2018 11:49:40 -0400 Subject: [PATCH] Quaternion from_dcm don't pass by value --- matrix/Quaternion.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/Quaternion.hpp b/matrix/Quaternion.hpp index 87bea23d2c..a17205fc12 100644 --- a/matrix/Quaternion.hpp +++ b/matrix/Quaternion.hpp @@ -510,7 +510,7 @@ public: /** * XXX DEPRECATED, can use assignment or ctor */ - Quaternion from_dcm(Matrix dcm) { + Quaternion from_dcm(const Matrix& dcm) { return Quaternion(Dcmf(dcm)); }