Removed the BSize(const BRect&) constructor and added BRect::Size()
instead. Also added a BRect(BPoint, BSize) constructor. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21120 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include <Rect.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
@@ -25,7 +24,6 @@ public:
|
||||
inline BSize();
|
||||
inline BSize(const BSize& other);
|
||||
inline BSize(float width, float height);
|
||||
inline BSize(const BRect& rect);
|
||||
|
||||
inline float Width() const;
|
||||
inline float Height() const;
|
||||
@@ -73,15 +71,6 @@ BSize::BSize(float width, float height)
|
||||
}
|
||||
|
||||
|
||||
// constructor
|
||||
inline
|
||||
BSize::BSize(const BRect& rect)
|
||||
: width(rect.Width()),
|
||||
height(rect.Height())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// Width
|
||||
inline float
|
||||
BSize::Width() const
|
||||
|
||||
Reference in New Issue
Block a user