Remove useless BRect* version of CenterIn, make remaining version take a const
BRect reference. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32614 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
467c2e8cb5
commit
b0586d610a
@ -168,8 +168,7 @@ public:
|
||||
void ResizeBy(float dx, float dy);
|
||||
void ResizeTo(float width, float height);
|
||||
|
||||
void CenterIn(BRect* rect);
|
||||
void CenterIn(BRect rect);
|
||||
void CenterIn(const BRect& rect);
|
||||
void CenterOnScreen();
|
||||
|
||||
virtual void Show();
|
||||
|
@ -2458,7 +2458,7 @@ BWindow::ResizeTo(float width, float height)
|
||||
|
||||
|
||||
void
|
||||
BWindow::CenterIn(BRect rect)
|
||||
BWindow::CenterIn(const BRect& rect)
|
||||
{
|
||||
// Force layout resizing if needed
|
||||
if (GetLayout() != NULL) {
|
||||
@ -2472,13 +2472,6 @@ BWindow::CenterIn(BRect rect)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BWindow::CenterIn(BRect* rect)
|
||||
{
|
||||
CenterIn(*rect);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BWindow::CenterOnScreen()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user