mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:07:34 +00:00
Everywhere: Remove redundant inline keyword with constexpr
Problem: - `constexpr` functions are additionally decorated with `inline` keyword. This is redundant since `constexpr` implies `inline`. Solution: - Remove redundancies.
This commit is contained in:
parent
42bfaef0bb
commit
ece8aeaaf4
7 changed files with 65 additions and 65 deletions
|
@ -31,7 +31,7 @@
|
|||
namespace Crypto {
|
||||
namespace Hash {
|
||||
|
||||
inline static constexpr auto ROTATE_LEFT(u32 value, size_t bits)
|
||||
static constexpr auto ROTATE_LEFT(u32 value, size_t bits)
|
||||
{
|
||||
return (value << bits) | (value >> (32 - bits));
|
||||
}
|
||||
|
|
|
@ -319,7 +319,7 @@ private:
|
|||
RGBA32 m_value { 0 };
|
||||
};
|
||||
|
||||
inline constexpr Color::Color(NamedColor named)
|
||||
constexpr Color::Color(NamedColor named)
|
||||
{
|
||||
if (named == Transparent) {
|
||||
m_value = 0;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
namespace Gfx {
|
||||
|
||||
template<size_t N, typename T>
|
||||
inline static constexpr void normalize(Matrix<N, T>& matrix)
|
||||
static constexpr void normalize(Matrix<N, T>& matrix)
|
||||
{
|
||||
auto sum = 0.0f;
|
||||
for (size_t i = 0; i < matrix.Size; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue