1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

AK: Mark some helper things constexpr.

This commit is contained in:
Andreas Kling 2019-06-24 10:13:28 +02:00
parent bf97b9589d
commit 2dd54f062a
2 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ private:
char m_inline_buffer[0];
};
inline dword string_hash(const char* characters, int length)
inline constexpr dword string_hash(const char* characters, int length)
{
dword hash = 0;
for (int i = 0; i < length; ++i) {