Browse Source

AP_Math: Using const references in matrix3

Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
mission-4.1.18
Daniel Frenzel 11 years ago committed by Andrew Tridgell
parent
commit
b1a9d6bbcc
  1. 4
      libraries/AP_Math/matrix3.h

4
libraries/AP_Math/matrix3.h

@ -56,7 +56,7 @@ public:
} }
// setting ctor // setting ctor
Matrix3<T>(const Vector3<T> a0, const Vector3<T> b0, const Vector3<T> c0) : a(a0), b(b0), c(c0) { Matrix3<T>(const Vector3<T> &a0, const Vector3<T> &b0, const Vector3<T> &c0) : a(a0), b(b0), c(c0) {
} }
// setting ctor // setting ctor
@ -64,7 +64,7 @@ public:
} }
// function call operator // function call operator
void operator () (const Vector3<T> a0, const Vector3<T> b0, const Vector3<T> c0) void operator () (const Vector3<T> &a0, const Vector3<T> &b0, const Vector3<T> &c0)
{ {
a = a0; b = b0; c = c0; a = a0; b = b0; c = c0;
} }

Loading…
Cancel
Save