From aa37277b893d1bfe589618665f355495082e05b6 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 13 Mar 2025 22:57:56 +0800 Subject: clang-format & clang-tidy --- src/session.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/session.hpp') diff --git a/src/session.hpp b/src/session.hpp index d7bc11c..3571ecb 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -13,25 +13,24 @@ class CSession { ~CSession(); struct SRecvData { - std::string data; - const size_t size = 1024; - bool good = true; + std::string data; + const size_t size = 1024; + bool good = true; bool isEmpty() const; void sanitize(); }; - std::string getName(); - void setSelf(std::pair> *self); + void setSelf(std::pair> *self); std::unique_ptr read(); std::unique_ptr read(const std::string &msg); - bool write(const std::string &msg); + bool write(const std::string &msg); template bool write(std::format_string fmt, Args &&...args); - template - bool write(eFormatType type, std::format_string fmt, Args &&...args); + template + bool write(eFormatType type, std::format_string fmt, Args &&...args); void run(); -- cgit v1.2.3