mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
SharedGraphics: Make Rect::shatter() return a Vector<Rect, 4>.
We know that shatter() will never return more than four rects, so we can use vector inline capacity to always avoid heap allocation here.
This commit is contained in:
parent
3873c51781
commit
4fb2e5d8af
2 changed files with 8 additions and 8 deletions
|
@ -177,7 +177,7 @@ public:
|
|||
Point location() const { return m_location; }
|
||||
Size size() const { return m_size; }
|
||||
|
||||
Vector<Rect> shatter(const Rect& hammer) const;
|
||||
Vector<Rect, 4> shatter(const Rect& hammer) const;
|
||||
|
||||
operator WSAPI_Rect() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue