mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:17:34 +00:00
Everywhere: Make global inline
functions not static
`inline` already assigns vague linkage, so there's no need to also assign per-TU linkage. Allows the linker to dedup these functions across TUs (and is almost always just the Right Thing to do in C++ -- this ain't C).
This commit is contained in:
parent
0a3cc10bb6
commit
a96f307af1
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace Gfx::Detail {
|
||||
|
||||
[[maybe_unused]] inline static void approximately_place_on_int_grid(FloatPoint ffrom, FloatPoint fto, IntPoint& from, IntPoint& to, Optional<IntPoint> previous_to)
|
||||
[[maybe_unused]] inline void approximately_place_on_int_grid(FloatPoint ffrom, FloatPoint fto, IntPoint& from, IntPoint& to, Optional<IntPoint> previous_to)
|
||||
{
|
||||
auto diffs = fto - ffrom;
|
||||
// Truncate all first (round down).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue