From 5a8d6f44b2ec9132848aee5f608447ff801951b2 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 26 Jun 2009 19:02:40 -0700 Subject: [PATCH] return bounds Rect by value --- include/ui/Region.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ui/Region.h b/include/ui/Region.h index 4299ea5a97872..df455a96b16d6 100644 --- a/include/ui/Region.h +++ b/include/ui/Region.h @@ -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);