Pass pugi xml_mode by value; refine coding style.

This commit is contained in:
Adam Gu
2018-05-23 13:07:17 +08:00
parent b41dfcebd9
commit 79665c75ba
16 changed files with 51 additions and 61 deletions
+4 -4
View File
@@ -9,7 +9,7 @@
#include "webcc/http_response.h"
#include "webcc/rest_client.h"
////////////////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------------
// Write a JSON object to string.
std::string JsonToString(const Json::Value& json) {
@@ -17,7 +17,7 @@ std::string JsonToString(const Json::Value& json) {
return Json::writeString(builder, json);
}
////////////////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------------
class BookListClient {
public:
@@ -62,7 +62,7 @@ private:
webcc::RestClient rest_client_;
};
////////////////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------------
class BookDetailClient {
public:
@@ -118,7 +118,7 @@ private:
webcc::RestClient rest_client_;
};
////////////////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------------
void Help(const char* argv0) {
std::cout << "Usage: " << argv0 << " <host> <port>" << std::endl;