summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-05 02:06:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-05 02:06:41 +0300
commit850e8626c1151fc33d7286575774960b5f104be6 (patch)
tree68214aac26dea3674c9124278cfc43365f72114c /src/utils
parentd090aa77c4d0b31aded37128cae011b882f3dd9b (diff)
downloadplus-850e8626c1151fc33d7286575774960b5f104be6.tar.gz
plus-850e8626c1151fc33d7286575774960b5f104be6.tar.bz2
plus-850e8626c1151fc33d7286575774960b5f104be6.tar.xz
plus-850e8626c1151fc33d7286575774960b5f104be6.zip
Fix code style.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/process.cpp11
1 files 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 <mutex>
#include <condition_variable>
-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;
}