mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 23:43:34 +08:00
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
This commit is contained in:
@@ -164,7 +164,7 @@ void RcInput::stop()
|
||||
|
||||
void RcInput::cycle_trampoline(void *arg)
|
||||
{
|
||||
RcInput *dev = reinterpret_cast<RcInput *>(arg);
|
||||
RcInput *dev = static_cast<RcInput *>(arg);
|
||||
dev->_cycle();
|
||||
}
|
||||
|
||||
|
||||
@@ -291,7 +291,7 @@ ssize_t AEROFC_ADC::read(file *filp, char *buffer, size_t len)
|
||||
|
||||
void AEROFC_ADC::cycle_trampoline(void *arg)
|
||||
{
|
||||
AEROFC_ADC *dev = reinterpret_cast<AEROFC_ADC * >(arg);
|
||||
AEROFC_ADC *dev = static_cast<AEROFC_ADC * >(arg);
|
||||
dev->cycle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user