mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +00:00
Everywhere: Redundant inline specifier on constexpr functions (#3807)
Problem: - `constexpr` functions are decorated with the `inline` specifier keyword. This is redundant because `constexpr` functions are implicitly `inline`. - [dcl.constexpr], §7.1.5/2 in the C++11 standard): "constexpr functions and constexpr constructors are implicitly inline (7.1.2)". Solution: - Remove the redundant `inline` keyword.
This commit is contained in:
parent
a40abd6ce3
commit
d1fe6a0b53
Notes:
sideshowbarker
2024-07-19 01:50:04 +09:00
Author: https://github.com/ldm5180
Commit: d1fe6a0b53
Pull-request: https://github.com/SerenityOS/serenity/pull/3807
13 changed files with 43 additions and 43 deletions
|
@ -36,7 +36,7 @@ namespace Gfx {
|
|||
enum class ColorRole;
|
||||
typedef u32 RGBA32;
|
||||
|
||||
inline constexpr u32 make_rgb(u8 r, u8 g, u8 b)
|
||||
constexpr u32 make_rgb(u8 r, u8 g, u8 b)
|
||||
{
|
||||
return ((r << 16) | (g << 8) | b);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue