mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
Everywhere: Remove some redundant inline
keywords
Functions defined inside class bodies (including static functions) are implicitly inline, no need to type it out.
This commit is contained in:
parent
5fa8068580
commit
0a3cc10bb6
7 changed files with 39 additions and 39 deletions
|
@ -63,16 +63,16 @@ public:
|
|||
}
|
||||
#endif
|
||||
|
||||
inline static DigestType hash(u8 const* data, size_t length)
|
||||
static DigestType hash(u8 const* data, size_t length)
|
||||
{
|
||||
MD5 md5;
|
||||
md5.update(data, length);
|
||||
return md5.digest();
|
||||
}
|
||||
|
||||
inline static DigestType hash(ByteBuffer const& buffer) { return hash(buffer.data(), buffer.size()); }
|
||||
inline static DigestType hash(StringView buffer) { return hash((u8 const*)buffer.characters_without_null_termination(), buffer.length()); }
|
||||
inline virtual void reset() override
|
||||
static DigestType hash(ByteBuffer const& buffer) { return hash(buffer.data(), buffer.size()); }
|
||||
static DigestType hash(StringView buffer) { return hash((u8 const*)buffer.characters_without_null_termination(), buffer.length()); }
|
||||
virtual void reset() override
|
||||
{
|
||||
m_A = MD5Constants::init_A;
|
||||
m_B = MD5Constants::init_B;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue