Fix some coding rule
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 29 Mar 2018 07:39:48 +0000 (16:39 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 29 Mar 2018 07:40:16 +0000 (16:40 +0900)
- Fix line over 80 chars.
- Fix include order.

Change-Id: I2f8f2f50bdf90bf5b7e828031cd28b7e0d0265c1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/capability.h
src/iotivity.cc
src/package_event_listener.h

index 4cbe47672f527d35e5b5c486a9033c31ea4039d0..6dd76db846914104516f3e16fababe482be1d377 100644 (file)
@@ -5,11 +5,11 @@
 #ifndef CAPABILITY_H_
 #define CAPABILITY_H_
 
+#include <json/json.h>
+
 #include <string>
 #include <utility>
 
-#include <json/json.h>
-
 namespace capmgr {
 
 class Capability {
index def280c12acadc3274a37bf24eb0ae46b4b58332..88e516af7fd89fa3bd99ca9b56f85ee629f06fec 100644 (file)
@@ -155,7 +155,8 @@ void Iotivity::DiscoverUnownedDevices() {
 
   for (const auto& sec_rsc : unowned_dev_list_) {
     LOG(INFO) << "Do ownership transfer: " << sec_rsc->getDevAddr();
-    sec_rsc->doOwnershipTransfer([this](OC::PMResultList_t* result, int hasError) {
+    sec_rsc->doOwnershipTransfer(
+        [this](OC::PMResultList_t* result, int hasError) {
           if (hasError) {
             LOG(ERROR) << "Failed to ownership transfer";
             return;
index 18c97278e6ef4653f847afaadf844c226b3918e3..670ef040f64bea564e42ca950f937fd8a7a5b0a7 100644 (file)
@@ -5,10 +5,10 @@
 #ifndef PACKAGE_EVENT_LISTENER_H_
 #define PACKAGE_EVENT_LISTENER_H_
 
-#include <boost/signals2.hpp>
-
 #include <package-manager.h>
 
+#include <boost/signals2.hpp>
+
 #include <functional>
 #include <map>
 #include <string>