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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user