From: kibak.yoon Date: Tue, 24 May 2016 04:18:19 +0000 (+0900) Subject: sensord: add/remove useless spaces for code style X-Git-Tag: accepted/tizen/common/20160627.191141~1^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b50978051344e9ade9353dbda38cee331817235c;p=platform%2Fcore%2Fsystem%2Fsensord.git sensord: add/remove useless spaces for code style Change-Id: Idae508f8b763a3b2674c1e121dce42b289c46fd4 Signed-off-by: kibak.yoon --- diff --git a/src/client/sensor_handle_info.cpp b/src/client/sensor_handle_info.cpp index 69ccac4..6dc1984 100644 --- a/src/client/sensor_handle_info.cpp +++ b/src/client/sensor_handle_info.cpp @@ -81,7 +81,7 @@ bool sensor_handle_info::add_reg_event_info(unsigned int event_type, unsigned in event_info.m_cb = cb; event_info.m_user_data = user_data; - m_reg_event_infos.insert(pair (event_type, event_info)); + m_reg_event_infos.insert(pair(event_type, event_info)); return true; } diff --git a/src/client/sensor_internal_deprecated.h b/src/client/sensor_internal_deprecated.h index 31496db..d74cab8 100644 --- a/src/client/sensor_internal_deprecated.h +++ b/src/client/sensor_internal_deprecated.h @@ -117,7 +117,7 @@ DEPRECATED int sf_start(int handle, int option); DEPRECATED int sf_stop(int handle); /** - * @fn int sf_register_event(int handle, unsigned int event_type, event_conditon_t *event_condition, sensor_callback_func_t cb, void *user_data ) + * @fn int sf_register_event(int handle, unsigned int event_type, event_conditon_t *event_condition, sensor_callback_func_t cb, void *user_data) * @brief This API registers a user defined callback function with a connected sensor for a particular event. This callback function will be called when there is a change in the state of respective sensor. user_data will be the parameter used during the callback call. Callback interval can be adjusted using even_contion_t argument. * @param[in] handle received handle value by sf_connect() * @param[in] event_type your desired event_type to register it diff --git a/src/server/client_info_manager.cpp b/src/server/client_info_manager.cpp index d4bb7c9..d065592 100644 --- a/src/server/client_info_manager.cpp +++ b/src/server/client_info_manager.cpp @@ -203,7 +203,7 @@ int client_info_manager::create_client_record(void) client_record.set_client_id(client_id); - m_clients.insert(pair (client_id, client_record)); + m_clients.insert(pair(client_id, client_record)); return client_id; } diff --git a/src/server/sensor_loader.cpp b/src/server/sensor_loader.cpp index f82856f..cf9f6ce 100644 --- a/src/server/sensor_loader.cpp +++ b/src/server/sensor_loader.cpp @@ -342,7 +342,7 @@ sensor_base* sensor_loader::get_sensor(sensor_id_t id) { vector sensors; - sensor_type_t type = static_cast (id >> SENSOR_TYPE_SHIFT); + sensor_type_t type = static_cast(id >> SENSOR_TYPE_SHIFT); unsigned int index = (id & SENSOR_INDEX_MASK); sensors = get_sensors(type); diff --git a/src/server/sensor_usage.cpp b/src/server/sensor_usage.cpp index 142ec4b..780bdff 100644 --- a/src/server/sensor_usage.cpp +++ b/src/server/sensor_usage.cpp @@ -66,7 +66,7 @@ bool sensor_usage::is_event_registered(unsigned int event_type) { auto it_event = find(m_reg_events.begin(), m_reg_events.end(), event_type); - if (it_event == m_reg_events.end()){ + if (it_event == m_reg_events.end()) { _D("Event[%#x] is not registered", event_type); return false; } diff --git a/src/shared/csocket.cpp b/src/shared/csocket.cpp index 4a01a38..00697f6 100644 --- a/src/shared/csocket.cpp +++ b/src/shared/csocket.cpp @@ -60,7 +60,9 @@ csocket::csocket(const csocket &sock) memcpy(&m_addr, &sock.m_addr, sizeof(sockaddr_un)); } -csocket::~csocket() { } +csocket::~csocket() +{ +} bool csocket::create(int sock_type) {