mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 05:37:35 +08:00
Switch operator() to return a const reference
This commit is contained in:
committed by
Julian Kent
parent
8a59b463f2
commit
0fd99c59f1
+1
-1
@@ -94,7 +94,7 @@ public:
|
||||
*/
|
||||
|
||||
|
||||
inline Type operator()(size_t i, size_t j) const
|
||||
inline const Type &operator()(size_t i, size_t j) const
|
||||
{
|
||||
assert(i >= 0);
|
||||
assert(i < M);
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ public:
|
||||
assert(y0 + Q <= N);
|
||||
}
|
||||
|
||||
Type operator()(size_t i, size_t j) const
|
||||
const Type &operator()(size_t i, size_t j) const
|
||||
{
|
||||
assert(i >= 0);
|
||||
assert(i < P);
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
inline Type operator()(size_t i) const
|
||||
inline const Type &operator()(size_t i) const
|
||||
{
|
||||
assert(i >= 0);
|
||||
assert(i < M);
|
||||
|
||||
Reference in New Issue
Block a user