Use static_cast instead of reinterpret_cast when possible. (#667)

This commit is contained in:
Jonathan Hui
2016-09-22 15:14:23 -07:00
committed by GitHub
parent 713e2260d1
commit d848ed12e8
14 changed files with 102 additions and 129 deletions
+1 -2
View File
@@ -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)