summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2017-08-14 15:44:52 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2017-08-14 15:44:52 -0400
commit1c531a872b34c57d8f88b806fd360e7cdcddd847 (patch)
tree3cb73c335ddaa8b1b1beeec67499e1db4c8d33f2 /src
parent19a7dc5dc54c8b0cb9075d7432adb76b628943f2 (diff)
downloadsdl_core-1c531a872b34c57d8f88b806fd360e7cdcddd847.tar.gz
Fix style issues
Diffstat (limited to 'src')
-rw-r--r--src/components/include/protocol_handler/session_observer.h8
-rw-r--r--src/components/protocol_handler/src/protocol_handler_impl.cc32
2 files changed, 19 insertions, 21 deletions
diff --git a/src/components/include/protocol_handler/session_observer.h b/src/components/include/protocol_handler/session_observer.h
index 3386112134..e58d959c8c 100644
--- a/src/components/include/protocol_handler/session_observer.h
+++ b/src/components/include/protocol_handler/session_observer.h
@@ -42,10 +42,10 @@
struct BsonObject;
- /**
- *\namespace protocol_handlerHandler
- *\brief Namespace for SmartDeviceLink ProtocolHandler related functionality.
- */
+/**
+ *\namespace protocol_handler
+ *\brief Namespace for SmartDeviceLink ProtocolHandler related functionality.
+ */
namespace protocol_handler {
/**
* \brief HASH_ID constants.
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc
index 17408b44b0..5f53552564 100644
--- a/src/components/protocol_handler/src/protocol_handler_impl.cc
+++ b/src/components/protocol_handler/src/protocol_handler_impl.cc
@@ -1250,8 +1250,7 @@ class StartSessionHandler : public security_manager::SecurityManagerListener {
BsonObject params;
if (payload_ != NULL) {
params = bson_object_from_bytes(payload_);
- }
- else {
+ } else {
bson_object_initialize_default(&params);
}
protocol_handler_->SendStartSessionAck(connection_id_,
@@ -1527,8 +1526,7 @@ void ProtocolHandlerImpl::NotifySessionStartedResult(
// ("width", "height", "videoProtocol", "videoCodec") to the ACK packet
if (packet->service_type() == kMobileNav && packet->data() != NULL) {
start_session_ack_params = bson_object_from_bytes(packet->data());
- }
- else {
+ } else {
bson_object_initialize_default(&start_session_ack_params);
}
@@ -1599,20 +1597,20 @@ void ProtocolHandlerImpl::NotifySessionStartedResult(
*fullVersion,
start_session_ack_params);
} else {
- //Need a copy because fullVersion will be deleted
+ // Need a copy because fullVersion will be deleted
ProtocolPacket::ProtocolVersion fullVersionCopy(*fullVersion);
- security_manager_->AddListener(
- new StartSessionHandler(connection_key,
- this,
- session_observer_,
- connection_id,
- generated_session_id,
- packet->protocol_version(),
- hash_id,
- service_type,
- get_settings().force_protected_service(),
- fullVersionCopy,
- bson_object_to_bytes(&start_session_ack_params)));
+ security_manager_->AddListener(new StartSessionHandler(
+ connection_key,
+ this,
+ session_observer_,
+ connection_id,
+ generated_session_id,
+ packet->protocol_version(),
+ hash_id,
+ service_type,
+ get_settings().force_protected_service(),
+ fullVersionCopy,
+ bson_object_to_bytes(&start_session_ack_params)));
if (!ssl_context->IsHandshakePending()) {
// Start handshake process
security_manager_->StartHandshake(connection_key);