mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 17:37:46 +00:00
Use static_cast instead of reinterpret_cast when possible. (#667)
This commit is contained in:
+1
-2
@@ -65,8 +65,7 @@ exit:
|
||||
|
||||
void Udp::HandleUdpReceive(void *aContext, otMessage aMessage, const otMessageInfo *aMessageInfo)
|
||||
{
|
||||
Udp *obj = reinterpret_cast<Udp *>(aContext);
|
||||
obj->HandleUdpReceive(aMessage, aMessageInfo);
|
||||
static_cast<Udp *>(aContext)->HandleUdpReceive(aMessage, aMessageInfo);
|
||||
}
|
||||
|
||||
void Udp::HandleUdpReceive(otMessage aMessage, const otMessageInfo *aMessageInfo)
|
||||
|
||||
Reference in New Issue
Block a user