mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
default constructor initializes position/size to 0 so people don't have to call Empty() any more.
This commit is contained in:
parent
690dc03bc0
commit
82e3dddcc8
@ -32,7 +32,7 @@ struct NS_GFX nsRect {
|
||||
nscoord width, height;
|
||||
|
||||
// Constructors
|
||||
nsRect() {}
|
||||
nsRect() : x(0), y(0), width(0), height(0) {}
|
||||
nsRect(const nsRect& aRect) {*this = aRect;}
|
||||
nsRect(const nsPoint& aOrigin, const nsSize &aSize) {x = aOrigin.x; y = aOrigin.y;
|
||||
width = aSize.width; height = aSize.height;}
|
||||
|
Loading…
Reference in New Issue
Block a user