From cb40b0808a639fa0de330cb2b88574a0e8b4d2d5 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 4 Mar 2023 17:49:03 -0400 Subject: TProtocol: Match ctor The reason for the large change is because I was trying to figure out why `TTcpSocket`'s ctor was so disjointed from the rest of the functions. Turns out, it's inlined, and inlining was turned off. Most likely, the whole codebase has inlining turned off. oof, press f `TArray`. --- include/pso/TPlySmth.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'include/pso/TPlySmth.h') diff --git a/include/pso/TPlySmth.h b/include/pso/TPlySmth.h index 660955f..99bf763 100644 --- a/include/pso/TPlySmth.h +++ b/include/pso/TPlySmth.h @@ -4,26 +4,28 @@ #include #include #include +#include class TPlySmth { public: - TPlySmth() /*{}*/; + TPlySmth() {}; - TPlySmth &operator=(const TPlySmth &src) /*{ return assign(src); }*/; + //TPlySmth &operator=(const TPlySmth &src) { return assign(src); }; - void bswap() /*{ - bswap_32(m_smth.at_as(0)); - bswap_32(m_smth1.at_as(0)); - }*/; + void bswap() { + bswap_32(m_smth.as()); + bswap_32(m_smth1.as()); + }; TPlySmth &assign(const TPlySmth &src) /*{ m_smth = src.m_smth; - m_smth1 = src.m_smth1; }*/; PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth, 4); PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth1, 4); -private: + + friend class TProtocol; +protected: TArray m_smth; TArray m_smth1; }; -- cgit v1.2.3-13-gbd6f