Codechange: Add default initialisation for Rect to remove MemSetT.
This commit is contained in:
committed by
Peter Nelson
parent
c905472650
commit
62b8b93476
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user