* 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:
Stephan Aßmus 2007-08-02 21:05:34 +00:00
parent 1a6914c517
commit 4389b7028c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);