зеркало из https://github.com/mozilla/gecko-dev.git
default constructor initializes position/size to 0 so people don't have to call Empty() any more.
This commit is contained in:
Родитель
690dc03bc0
Коммит
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;}
|
||||
|
|
Загрузка…
Ссылка в новой задаче