mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 22:40:27 +08:00
Inline block param getter
This commit is contained in:
1 parent
f5ffdba4cc
commit
9618b9417b
2 files changed
+1
-4
No files matched your search
@@ -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