os: Construct invalid 'Rect' by default

This commit is contained in:
Norman Feske 2014-04-30 21:30:32 +02:00
parent 867a7018e8
commit 9cc9736bf1

View File

@ -115,7 +115,7 @@ class Genode::Rect
Rect(Point<CT> p, Area<DT> a) Rect(Point<CT> p, Area<DT> a)
: _p1(p), _p2(p.x() + a.w() - 1, p.y() + a.h() - 1) { } : _p1(p), _p2(p.x() + a.w() - 1, p.y() + a.h() - 1) { }
Rect() { } Rect() : /* invalid */ _p1(1, 1), _p2(0, 0) { }
/** /**
* Accessors * Accessors