diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/naclmessages.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/naclmessages.cpp b/src/utils/naclmessages.cpp index 1723f7180..de7227eae 100644 --- a/src/utils/naclmessages.cpp +++ b/src/utils/naclmessages.cpp @@ -51,7 +51,8 @@ static void naclMessageHandlerFunc(struct PP_Var key, struct PP_Var value, void* user_data) { - NaclMessageHandle *handle = (NaclMessageHandle *)user_data; + NaclMessageHandle *handle = reinterpret_cast<NaclMessageHandle *>( + user_data); if (key.type != PP_VARTYPE_STRING || value.type != PP_VARTYPE_STRING) return; @@ -72,7 +73,7 @@ NaclMessageHandle *naclRegisterMessageHandler(const std::string &type) PSEventRegisterMessageHandler(type.c_str(), naclMessageHandlerFunc, - (void *)handle); + reinterpret_cast<void *>(handle)); return handle; } |