1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 13:53:13 +02:00

Improve the layout of types that inherit from another type.

This commit is contained in:
Sadie Powell
2024-01-23 15:28:23 +00:00
parent 398d674cf4
commit a6a0f6c447
232 changed files with 1648 additions and 798 deletions
+6 -3
View File
@@ -54,7 +54,8 @@ static const uint32_t sha1_iv[5] =
0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0
};
class SHA1Context : public Encryption::Context
class SHA1Context
: public Encryption::Context
{
uint32_t state[5];
uint32_t count[2];
@@ -178,7 +179,8 @@ public:
}
};
class SHA1Provider : public Encryption::Provider
class SHA1Provider
: public Encryption::Provider
{
public:
SHA1Provider(Module *creator) : Encryption::Provider(creator, "sha1") { }
@@ -197,7 +199,8 @@ public:
}
};
class ESHA1 : public Module
class ESHA1
: public Module
{
SHA1Provider sha1provider;