Codechange: Move RectPadding::zero definition to header. (#11461)

This potentially allows better inlining/optimization.
This commit is contained in:
Peter Nelson 2023-11-16 17:07:29 +00:00 committed by GitHub
parent e2e0753916
commit 7d48a3f073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -48,5 +48,3 @@ Rect BoundingRect(const Rect &r1, const Rect &r2)
return r;
}
const RectPadding RectPadding::zero = {0, 0, 0, 0};

View File

@ -65,6 +65,8 @@ struct RectPadding {
inline uint Vertical() const { return this->top + this->bottom; }
};
inline const RectPadding RectPadding::zero{};
/** Specification of a rectangle with absolute coordinates of all edges */
struct Rect {
int left;