From a746fc77faf88cf97fda871b73bc4ae9d3cef3eb Mon Sep 17 00:00:00 2001 From: Antz Date: Wed, 22 Apr 2020 22:02:25 +0100 Subject: [PATCH] Some minor styling updates --- src/shared/Auth/AuthCrypt.cpp | 20 ++++++++++---------- src/shared/GameSystem/TypeContainerVisitor.h | 14 +++++++++++++- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/shared/Auth/AuthCrypt.cpp b/src/shared/Auth/AuthCrypt.cpp index 824a10b0..b6920d90 100644 --- a/src/shared/Auth/AuthCrypt.cpp +++ b/src/shared/Auth/AuthCrypt.cpp @@ -38,13 +38,13 @@ AuthCrypt::AuthCrypt() void AuthCrypt::DecryptRecv(uint8* data, size_t len) { if (!_initialized) - { - return; - } - if (len < CRYPTED_RECV_LEN) - { - return; - } + { + return; + } + if (len < CRYPTED_RECV_LEN) + { + return; + } for (size_t t = 0; t < CRYPTED_RECV_LEN; t++) { @@ -59,9 +59,9 @@ void AuthCrypt::DecryptRecv(uint8* data, size_t len) void AuthCrypt::EncryptSend(uint8* data, size_t len) { if (!_initialized) - { - return; - } + { + return; + } if (len < CRYPTED_SEND_LEN) { diff --git a/src/shared/GameSystem/TypeContainerVisitor.h b/src/shared/GameSystem/TypeContainerVisitor.h index 4ed7ccac..878dc440 100644 --- a/src/shared/GameSystem/TypeContainerVisitor.h +++ b/src/shared/GameSystem/TypeContainerVisitor.h @@ -35,9 +35,19 @@ #include "TypeContainer.h" template +/** + * @brief + * + */ class TypeContainerVisitor { public: + + /** + * @brief + * + * @param v + */ TypeContainerVisitor(VISITOR& v) : i_visitor(v){} void Visit(CONTAINER& c) { @@ -47,8 +57,10 @@ class TypeContainerVisitor { c.template accept(std::forward(i_visitor)); } + private: - VISITOR& i_visitor; + + VISITOR& i_visitor; /**< TODO */ }; #endif