Browse Source

Using clang-format on json reader commit

anon 5 năm trước cách đây
mục cha
commit
fff2ff3aea
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      daemon/src/Server.cpp

+ 6 - 6
daemon/src/Server.cpp

@@ -40,8 +40,8 @@ void con_handler::handle_read_version(const boost::system::error_code &err,
     Json::Value root;
 
     // parse data
-    if (!this->jsonReader->parse(this->data, this->data + bytes_transferred, &root,
-                       &err)) {
+    if (!this->jsonReader->parse(this->data, this->data + bytes_transferred,
+                                 &root, &err)) {
       std::cerr << "Json error: " << err << std::endl << "data: " << this->data;
       sock.close();
     }
@@ -83,8 +83,8 @@ void con_handler::handle_read_login(const boost::system::error_code &err,
     Json::Value root;
 
     // parse data
-    if (!this->jsonReader->parse(this->data, this->data + bytes_transferred, &root,
-                       &err)) {
+    if (!this->jsonReader->parse(this->data, this->data + bytes_transferred,
+                                 &root, &err)) {
       std::cerr << "Json error: " << err << std::endl << "data: " << this->data;
       sock.close();
     }
@@ -125,8 +125,8 @@ void con_handler::handle_read_command(const boost::system::error_code &err,
     Json::Value root;
 
     // parse data
-    if (!this->jsonReader->parse(this->data, this->data + bytes_transferred, &root,
-                       &err)) {
+    if (!this->jsonReader->parse(this->data, this->data + bytes_transferred,
+                                 &root, &err)) {
       std::cerr << "Json error: " << err << std::endl << "data: " << this->data;
       sock.close();
     }