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:
@@ -168,8 +168,7 @@ public:
|
|||||||
void ResizeBy(float dx, float dy);
|
void ResizeBy(float dx, float dy);
|
||||||
void ResizeTo(float width, float height);
|
void ResizeTo(float width, float height);
|
||||||
|
|
||||||
void CenterIn(BRect* rect);
|
void CenterIn(const BRect& rect);
|
||||||
void CenterIn(BRect rect);
|
|
||||||
void CenterOnScreen();
|
void CenterOnScreen();
|
||||||
|
|
||||||
virtual void Show();
|
virtual void Show();
|
||||||
|
|||||||
@@ -2458,7 +2458,7 @@ BWindow::ResizeTo(float width, float height)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BWindow::CenterIn(BRect rect)
|
BWindow::CenterIn(const BRect& rect)
|
||||||
{
|
{
|
||||||
// Force layout resizing if needed
|
// Force layout resizing if needed
|
||||||
if (GetLayout() != NULL) {
|
if (GetLayout() != NULL) {
|
||||||
@@ -2472,13 +2472,6 @@ BWindow::CenterIn(BRect rect)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
BWindow::CenterIn(BRect* rect)
|
|
||||||
{
|
|
||||||
CenterIn(*rect);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BWindow::CenterOnScreen()
|
BWindow::CenterOnScreen()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user