Unified code style (#2137)

This commit is contained in:
老衲不出家
2022-12-02 14:43:06 +08:00
committed by GitHub
parent a12b7c8021
commit f05a9501fa
62 changed files with 166 additions and 149 deletions

View File

@@ -29,7 +29,7 @@ namespace mediakit {
*/
class HttpBody : public std::enable_shared_from_this<HttpBody>{
public:
typedef std::shared_ptr<HttpBody> Ptr;
using Ptr = std::shared_ptr<HttpBody>;
HttpBody(){}
virtual ~HttpBody(){}
@@ -73,7 +73,7 @@ public:
*/
class HttpStringBody : public HttpBody{
public:
typedef std::shared_ptr<HttpStringBody> Ptr;
using Ptr = std::shared_ptr<HttpStringBody>;
HttpStringBody(std::string str);
~HttpStringBody() override = default;
@@ -90,7 +90,7 @@ private:
*/
class HttpBufferBody : public HttpBody{
public:
typedef std::shared_ptr<HttpBufferBody> Ptr;
using Ptr = std::shared_ptr<HttpBufferBody>;
HttpBufferBody(toolkit::Buffer::Ptr buffer);
~HttpBufferBody() override = default;
@@ -106,7 +106,7 @@ private:
*/
class HttpFileBody : public HttpBody {
public:
typedef std::shared_ptr<HttpFileBody> Ptr;
using Ptr = std::shared_ptr<HttpFileBody>;
/**
* 构造函数
@@ -142,7 +142,7 @@ class HttpArgs;
*/
class HttpMultiFormBody : public HttpBody {
public:
typedef std::shared_ptr<HttpMultiFormBody> Ptr;
using Ptr = std::shared_ptr<HttpMultiFormBody>;
/**
* 构造函数