Fix coding style 84/262484/4
authorChanggyu Choi <changyu.choi@samsung.com>
Thu, 12 Aug 2021 01:03:16 +0000 (10:03 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 13 Aug 2021 02:05:52 +0000 (02:05 +0000)
Change-Id: I77493692e72af5b2d4af5ca1113ef3f04f608de5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
17 files changed:
src/ac-internal.cc
src/client-socket-internal.hh
src/debug-port-internal.cc
src/debug-port-internal.hh
src/exception-internal.cc
src/port-internal.cc
src/port-internal.hh
src/proxy-internal.cc
src/proxy-internal.hh
src/request-internal.cc
src/response-internal.hh
src/rpc-port.cc
src/server-socket-internal.hh
src/stub-internal.cc
utils/debug-port.cc
utils/logger.cc
utils/message.cc

index a0b5e7ae465f02fceefc35e87fe3ee6e2295c3f5..3f3af6503406658d74e6a9bfeae40530b9205bd9 100644 (file)
@@ -20,6 +20,8 @@
 #include <dlog.h>
 #include <pkgmgr-info.h>
 
+#include <utility>
+
 #include "ac-internal.hh"
 #include "aul-internal.hh"
 #include "log-private.hh"
index de7e9603a64cd7044a6e6e232fc43cfd0667e5ca..2446e389b1f60e822fbb70e94693351b09fc0feb 100644 (file)
@@ -25,7 +25,7 @@ namespace internal {
 class ClientSocket {
  public:
   ClientSocket();
-  ClientSocket(int fd);
+  explicit ClientSocket(int fd);
   virtual ~ClientSocket();
 
   void Close();
index 8b28c77ce8f68e6c9c0080baadd03ccf6a27c39c..ab660a3d6995669d2a40d8021afaf1654e16417c 100644 (file)
@@ -20,6 +20,8 @@
 #include <sys/un.h>
 #include <time.h>
 
+#include <utility>
+
 #include "debug-port-internal.hh"
 #include "log-private.hh"
 
index 98a3042257cca8707d6bafa983374047c909ab03..ac63f416407d2c4cdbeb62b69d344f11ce690ca4 100644 (file)
@@ -27,6 +27,7 @@
 #include <mutex>
 #include <string>
 #include <thread>
+#include <utility>
 
 #include "port-internal.hh"
 #include "shared-queue-internal.hh"
index 0ee27f0c82d77886fc9981e87481f562b63e07ea..8e21f2027b2169b39592d262897626bcdfeb80fb 100644 (file)
@@ -16,6 +16,8 @@
 
 #include "exception-internal.hh"
 
+#include <utility>
+
 namespace rpc_port {
 namespace internal {
 
index 79438f293e294140757f374febd37dbcfd2b62c7..9ae6802182d3fc68d01fd7538db6d6354d397eed 100644 (file)
@@ -24,6 +24,8 @@
 #include <unistd.h>
 #include <uuid/uuid.h>
 
+#include <utility>
+
 #include "include/rpc-port.h"
 #include "log-private.hh"
 #include "port-internal.hh"
@@ -268,7 +270,7 @@ gboolean Port::OnEventReceived(gint fd, GIOCondition cond,
 void Port::ClearQueue() {
   std::lock_guard<std::recursive_mutex> lock(mutex_);
 
-  while(queue_.empty() == false)
+  while (queue_.empty() == false)
     queue_.pop();
 
   if (delay_src_id_ != 0) {
index d6fc42829773927bea6e7f401bc50c5396c016e0..bda4d41adf2ca9fc0556412a2aa0ba6d8b43f62c 100644 (file)
@@ -84,9 +84,9 @@ class Port {
   };
 
   enum PortStatus {
-   PORT_STATUS_ERROR_NONE,
-   PORT_STATUS_ERROR_IO_ERROR,
-   PORT_STATUS_ERROR_RESOURCE_UNAVAILABLE
+    PORT_STATUS_ERROR_NONE,
+    PORT_STATUS_ERROR_IO_ERROR,
+    PORT_STATUS_ERROR_RESOURCE_UNAVAILABLE
   };
 
   int PushDelayedMessage(std::shared_ptr<DelayMessage> dm);
index f22c6ca7a6a6fadfca2bf1b417634cb4cbc56212..35abc751272de11d0c4fac0f5005e4bb30f8742a 100644 (file)
@@ -21,6 +21,8 @@
 #include <uuid.h>
 
 #include <memory>
+#include <utility>
+#include <vector>
 
 #include "aul-internal.hh"
 #include "debug-port-internal.hh"
index 414888fc98b187188aa3b22adc9cd9f3ff2b7ec7..5003539e2bc7354f7f683f3c2399c81d239430de 100644 (file)
@@ -87,7 +87,7 @@ class Proxy : public std::enable_shared_from_this<Proxy> {
 
   class Client : public ClientSocket {
    public:
-    Client(Proxy* parent);
+    explicit Client(Proxy* parent);
     virtual ~Client();
 
     static Client* Create(Proxy* parent, const std::string& endpoint);
index ef15ad5ae9a6afdd3f29007519ac3754736c290a..af78026f1924917c015627897b9931baab62af98 100644 (file)
@@ -16,6 +16,8 @@
 
 #include "request-internal.hh"
 
+#include <utility>
+
 namespace rpc_port {
 namespace internal {
 
index 4855b816992d5798415db622840859b229fd2082..25227d36c337385644edd06be32d5c99c3e82141 100644 (file)
@@ -25,7 +25,7 @@ namespace internal {
 
 class Response : public tizen_base::Parcelable {
  public:
-  Response(int result);
+  explicit Response(int result);
   Response();
   ~Response();
 
index 1410a04d148ebfc4b4ba377ffd75ac188934f0ad..310cfbcc1bf47dcfc0f33495565272fc6a32cee0 100644 (file)
@@ -21,6 +21,7 @@
 #include <atomic>
 #include <mutex>
 #include <thread>
+#include <utility>
 
 #include "include/rpc-port-internal.h"
 #include "include/rpc-port.h"
@@ -47,7 +48,7 @@ class Event {
 
 class ProxyExt : public Proxy, public Proxy::IEventListener {
  public:
-  explicit ProxyExt() : Proxy(), destroying_(false) {}
+  ProxyExt() : Proxy(), destroying_(false) {}
   virtual ~ProxyExt() = default;
 
   void AddConnectedEventListener(rpc_port_proxy_connected_event_cb cb,
index ae025acd182b165b7bb8ff0d1fb4fd6278d8cd16..47ca9700e26c7b800c366296e57b8125c0fe25ab 100644 (file)
@@ -24,7 +24,7 @@ namespace internal {
 
 class ServerSocket {
  public:
-  ServerSocket(int fd);
+  explicit ServerSocket(int fd);
   virtual ~ServerSocket();
 
   bool IsClosed();
index 63cea83aeec41ca2cd960c1f42eb05170004a345..553a9a6cf01463e6397dc0222c75c3afbf974b39 100644 (file)
@@ -20,6 +20,9 @@
 #include <sys/socket.h>
 #include <sys/types.h>
 
+#include <utility>
+#include <vector>
+
 #include "aul-internal.hh"
 #include "debug-port-internal.hh"
 #include "include/rpc-port.h"
@@ -222,7 +225,7 @@ gboolean Stub::OnSocketDisconnected(GIOChannel* channel, GIOCondition cond,
     }
   }
 
-  return G_SOURCE_REMOVE;;
+  return G_SOURCE_REMOVE;
 }
 
 void Stub::AddAcceptedPort(const std::string& sender_appid,
index 7a5229b3c5906be277530f908413b1e203c03121..202d9dad33e1834d190a233fd9b867ff54a9af95 100644 (file)
@@ -22,6 +22,7 @@
 #include <sys/un.h>
 
 #include <iostream>
+#include <utility>
 #include <vector>
 
 #include "debug-port.hh"
index 7bb1895f0377b0e8b0e836173dd1c5a605eb0c37..8d1608f659fac49facbf88daea1098d81de09927 100644 (file)
@@ -87,8 +87,7 @@ int Logger::Read(void* buf, unsigned int size) {
   return 0;
 }
 
-rpc_port_parcel_h Logger::Read()
-{
+rpc_port_parcel_h Logger::Read() {
   int size = 0;
   int ret = Read(reinterpret_cast<void*>(&size), sizeof(size));
   if (ret < 0 || size <= 0)
index 17fa64747bbb28556051a631d840abfb3a6201f5..47be34187c69c7547289fe74b7c183724f1659f7 100644 (file)
@@ -20,6 +20,7 @@
 #include <ctime>
 #include <iostream>
 #include <iomanip>
+#include <utility>
 
 #include "message.hh"