Some minor styling updates

This commit is contained in:
Antz 2020-04-22 22:02:25 +01:00
parent 814c4a7c59
commit a746fc77fa
2 changed files with 23 additions and 11 deletions

View File

@ -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)
{

View File

@ -35,9 +35,19 @@
#include "TypeContainer.h"
template<class VISITOR, class CONTAINER>
/**
* @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<VISITOR>(std::forward<VISITOR>(i_visitor));
}
private:
VISITOR& i_visitor;
VISITOR& i_visitor; /**< TODO */
};
#endif