diff options
| author | Mathias Agopian <mathias@google.com> | 2009-06-26 19:02:40 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2009-06-26 19:02:40 -0700 |
| commit | 5a8d6f44b2ec9132848aee5f608447ff801951b2 (patch) | |
| tree | 2d6801b9d105d4da2ba141460c988c2c1f9c001b /include/ui | |
| parent | 8f78faa1ef7e2436d11e4c04be67b5a95bf126b9 (diff) | |
| download | frameworks_base-5a8d6f44b2ec9132848aee5f608447ff801951b2.zip frameworks_base-5a8d6f44b2ec9132848aee5f608447ff801951b2.tar.gz frameworks_base-5a8d6f44b2ec9132848aee5f608447ff801951b2.tar.bz2 | |
return bounds Rect by value
Diffstat (limited to 'include/ui')
| -rw-r--r-- | include/ui/Region.h | 4 |
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); |
