summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-26 19:02:40 -0700
committerMathias Agopian <mathias@google.com>2009-06-26 19:02:40 -0700
commit17b2ad027b4b72b96dfb663c0ea001972da7ef58 (patch)
tree91158f500cc96a54c53041cbff9b6bebf6f65b1f /include/ui
parentd512f238a6c439c422a229fe53a86dc386bd3b58 (diff)
downloadframeworks_native-17b2ad027b4b72b96dfb663c0ea001972da7ef58.zip
frameworks_native-17b2ad027b4b72b96dfb663c0ea001972da7ef58.tar.gz
frameworks_native-17b2ad027b4b72b96dfb663c0ea001972da7ef58.tar.bz2
return bounds Rect by value
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/Region.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ui/Region.h b/include/ui/Region.h
index 4299ea5..df455a9 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);