mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 16:13:34 +08:00
Fix const error
This commit is contained in:
committed by
Nuno Marques
parent
eea6b59973
commit
5ccfa74c72
+1
-1
@@ -355,7 +355,7 @@ public:
|
|||||||
template<size_t P, size_t Q>
|
template<size_t P, size_t Q>
|
||||||
Matrix<Type, P, Q> slice(size_t x0, size_t y0) const
|
Matrix<Type, P, Q> slice(size_t x0, size_t y0) const
|
||||||
{
|
{
|
||||||
Matrix<Type, M, N> &self = *this;
|
const Matrix<Type, M, N> &self = *this;
|
||||||
Matrix<Type, P, Q> res; //default constructed
|
Matrix<Type, P, Q> res; //default constructed
|
||||||
for (size_t i = 0; i < P; i++) {
|
for (size_t i = 0; i < P; i++) {
|
||||||
for (size_t j = 0; j < Q; j++) {
|
for (size_t j = 0; j < Q; j++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user