return bounds Rect by value

This commit is contained in:
Mathias Agopian
2009-06-26 19:02:40 -07:00
parent 8f78faa1ef
commit 5a8d6f44b2

View File

@@ -48,8 +48,8 @@ public:
inline bool isEmpty() const { return mBounds.isEmpty(); }
inline bool isRect() const { return mStorage.isEmpty(); }
inline const Rect& getBounds() const { return mBounds; }
inline const Rect& bounds() const { return getBounds(); }
inline Rect getBounds() const { return mBounds; }
inline Rect bounds() const { return getBounds(); }
void clear();
void set(const Rect& r);