diff options
author | Kozoriz <kozorizandriy@gmail.com> | 2016-04-26 12:41:54 +0300 |
---|---|---|
committer | Kozoriz <kozorizandriy@gmail.com> | 2016-04-26 15:50:21 +0300 |
commit | 4ecdb2a83871784f34430ed09d5ef6a2c0855506 (patch) | |
tree | dc36b449e5d32ac3e493e16865cf9d88d9991817 /src/components/connection_handler/src/device.cc | |
parent | cf58bb97d09c536dce3b492d1517da0b837bc8eb (diff) | |
download | sdl_core-4ecdb2a83871784f34430ed09d5ef6a2c0855506.tar.gz |
Format all code in project
Formated all code in appMain, components, plugins to correct coding-style
Used clang-format-3.6
Used 2 commands :
find src/appMain/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
find src/components/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
find src/plugins/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
Diffstat (limited to 'src/components/connection_handler/src/device.cc')
-rw-r--r-- | src/components/connection_handler/src/device.cc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/components/connection_handler/src/device.cc b/src/components/connection_handler/src/device.cc index 5ba4ba278f..0ecb439172 100644 --- a/src/components/connection_handler/src/device.cc +++ b/src/components/connection_handler/src/device.cc @@ -46,24 +46,25 @@ namespace connection_handler { CREATE_LOGGERPTR_GLOBAL(logger_, "ConnectionHandler") Device::Device(DeviceHandle device_handle, - const std::string &user_friendly_name, - const std::string &mac_address, const std::string& connection_type) - : device_handle_(device_handle), - user_friendly_name_(user_friendly_name), - mac_address_(mac_address), - connection_type_(connection_type){ - mac_address_ = encryption::MakeHash(mac_address); - LOG4CXX_DEBUG(logger_, - "Device: MAC address - " << mac_address - << ", hash - " << mac_address_); + const std::string& user_friendly_name, + const std::string& mac_address, + const std::string& connection_type) + : device_handle_(device_handle) + , user_friendly_name_(user_friendly_name) + , mac_address_(mac_address) + , connection_type_(connection_type) { + mac_address_ = encryption::MakeHash(mac_address); + LOG4CXX_DEBUG(logger_, + "Device: MAC address - " << mac_address << ", hash - " + << mac_address_); } DeviceHandle Device::device_handle() const { - return device_handle_; + return device_handle_; } std::string Device::user_friendly_name() const { - return user_friendly_name_; + return user_friendly_name_; } std::string Device::mac_address() const { |