diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-18 21:11:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-18 21:11:43 +0300 |
commit | 7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9 (patch) | |
tree | a4f136272f5b52a1c425429a36755bd06ddd1ba0 /src/utils/naclmessages.cpp | |
parent | b4fcb4e1b208b6127ca28412d1a75f1ef30d1f85 (diff) | |
download | manaverse-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.tar.gz manaverse-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.tar.bz2 manaverse-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.tar.xz manaverse-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.zip |
Fix code style.
Diffstat (limited to 'src/utils/naclmessages.cpp')
-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; } |