Codechange: Add default initialisation for Rect to remove MemSetT.

This commit is contained in:
Peter Nelson
2025-03-08 19:52:02 +00:00
committed by Peter Nelson
parent c905472650
commit 62b8b93476
2 changed files with 10 additions and 11 deletions

View File

@@ -73,10 +73,10 @@ inline const RectPadding RectPadding::zero{};
/** Specification of a rectangle with absolute coordinates of all edges */
struct Rect {
int left;
int top;
int right;
int bottom;
int left = 0;
int top = 0;
int right = 0;
int bottom = 0;
/**
* Get width of Rect.
@@ -232,10 +232,10 @@ struct Rect {
* (relative) width/height
*/
struct PointDimension {
int x;
int y;
int width;
int height;
int x = 0;
int y = 0;
int width = 0;
int height = 0;
};
#endif /* GEOMETRY_TYPE_HPP */