return bounds Rect by value
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 @@
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);