diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-05 02:06:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-05 02:06:41 +0300 |
commit | 850e8626c1151fc33d7286575774960b5f104be6 (patch) | |
tree | 68214aac26dea3674c9124278cfc43365f72114c | |
parent | d090aa77c4d0b31aded37128cae011b882f3dd9b (diff) | |
download | mv-850e8626c1151fc33d7286575774960b5f104be6.tar.gz mv-850e8626c1151fc33d7286575774960b5f104be6.tar.bz2 mv-850e8626c1151fc33d7286575774960b5f104be6.tar.xz mv-850e8626c1151fc33d7286575774960b5f104be6.zip |
Fix code style.
-rw-r--r-- | src/utils/process.cpp | 11 |
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; } |