* 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:
parent
1a6914c517
commit
4389b7028c
@ -247,7 +247,7 @@ Transformable::InverseTransform(const BPoint& point) const
|
||||
|
||||
// TransformBounds
|
||||
BRect
|
||||
Transformable::TransformBounds(BRect bounds) const
|
||||
Transformable::TransformBounds(const BRect& bounds) const
|
||||
{
|
||||
if (bounds.IsValid()) {
|
||||
BPoint lt(bounds.left, bounds.top);
|
||||
|
@ -51,7 +51,7 @@ class Transformable : public BArchivable,
|
||||
|
||||
// transforms the rectangle "bounds" and
|
||||
// returns the *bounding box* of that
|
||||
BRect TransformBounds(BRect bounds) const;
|
||||
BRect TransformBounds(const BRect& bounds) const;
|
||||
|
||||
// some convenience functions
|
||||
virtual void TranslateBy(BPoint offset);
|
||||
|
Loading…
Reference in New Issue
Block a user