summaryrefslogtreecommitdiff
path: root/src/utils/naclmessages.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-18 21:11:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-18 21:11:43 +0300
commit7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9 (patch)
treea4f136272f5b52a1c425429a36755bd06ddd1ba0 /src/utils/naclmessages.cpp
parentb4fcb4e1b208b6127ca28412d1a75f1ef30d1f85 (diff)
downloadplus-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.tar.gz
plus-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.tar.bz2
plus-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.tar.xz
plus-7a0ac46d7e5c5a514463c95b5c4d0c7f13c022c9.zip
Fix code style.
Diffstat (limited to 'src/utils/naclmessages.cpp')
-rw-r--r--src/utils/naclmessages.cpp5
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;
}