* TransformBounds() takes a const BRect&
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21801 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -247,7 +247,7 @@ Transformable::InverseTransform(const BPoint& point) const
|
|||||||
|
|
||||||
// TransformBounds
|
// TransformBounds
|
||||||
BRect
|
BRect
|
||||||
Transformable::TransformBounds(BRect bounds) const
|
Transformable::TransformBounds(const BRect& bounds) const
|
||||||
{
|
{
|
||||||
if (bounds.IsValid()) {
|
if (bounds.IsValid()) {
|
||||||
BPoint lt(bounds.left, bounds.top);
|
BPoint lt(bounds.left, bounds.top);
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class Transformable : public BArchivable,
|
|||||||
|
|
||||||
// transforms the rectangle "bounds" and
|
// transforms the rectangle "bounds" and
|
||||||
// returns the *bounding box* of that
|
// returns the *bounding box* of that
|
||||||
BRect TransformBounds(BRect bounds) const;
|
BRect TransformBounds(const BRect& bounds) const;
|
||||||
|
|
||||||
// some convenience functions
|
// some convenience functions
|
||||||
virtual void TranslateBy(BPoint offset);
|
virtual void TranslateBy(BPoint offset);
|
||||||
|
|||||||
Reference in New Issue
Block a user