mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
Inline block param getter
This commit is contained in:
committed by
Lorenz Meier
parent
f5ffdba4cc
commit
9618b9417b
@@ -93,9 +93,6 @@ BlockParam<T>::BlockParam(Block *block, const char *name,
|
||||
update();
|
||||
}
|
||||
|
||||
template <class T>
|
||||
T BlockParam<T>::get() { return _val; }
|
||||
|
||||
template <class T>
|
||||
void BlockParam<T>::set(T val)
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
BlockParam(const BlockParam &) = delete;
|
||||
BlockParam &operator=(const BlockParam &) = delete;
|
||||
|
||||
T get();
|
||||
inline T get() const { return _val; }
|
||||
void commit();
|
||||
void set(T val);
|
||||
void update() override;
|
||||
|
||||
Reference in New Issue
Block a user