From 850e8626c1151fc33d7286575774960b5f104be6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Dec 2015 02:06:41 +0300 Subject: Fix code style. --- src/utils/process.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/utils/process.cpp b/src/utils/process.cpp index d3d154270..fdcb56150 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -306,7 +306,8 @@ void setPriority(const bool big A_UNUSED) #include #include -struct _NaclMessageHandle { +struct _NaclMessageHandle +{ bool handled; std::string type; std::string message; @@ -342,13 +343,17 @@ NaclMessageHandle *naclRegisterMessageHandler(const std::string &type) handle->handled = false; handle->type = type; - PSEventRegisterMessageHandler(type.c_str(), naclMessageHandlerFunc, (void *)handle); + PSEventRegisterMessageHandler(type.c_str(), + naclMessageHandlerFunc, + (void *)handle); return handle; } void naclUnregisterMessageHandler(NaclMessageHandle *handle) { - PSEventRegisterMessageHandler(handle->type.c_str(), NULL, NULL); + PSEventRegisterMessageHandler(handle->type.c_str(), + nullptr, + nullptr); delete handle; } -- cgit v1.2.3-70-g09d2