Bug 1485245: Back out Move -> std::move change in 7zstub. r=mhowell

Differential Revision: https://phabricator.services.mozilla.com/D3945

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Adam Gashlin 2018-08-22 14:46:50 +00:00
parent e5f4c6cf3d
commit 1221ad7795
2 changed files with 3 additions and 3 deletions

View file

@ -177,7 +177,7 @@ void CDialog::NormalizeSize(bool fullNormalize)
if (fullNormalize)
Show(SW_SHOWMAXIMIZED);
else
std::move(rect.left, rect.top, xSize2, ySize2, true);
Move(rect.left, rect.top, xSize2, ySize2, true);
}
}
@ -187,7 +187,7 @@ void CDialog::NormalizePosition()
GetWorkAreaRect(&workRect);
GetWindowRect(&rect);
if (rect.bottom > workRect.bottom && rect.top > workRect.top)
std::move(rect.left, workRect.top, RECT_SIZE_X(rect), RECT_SIZE_Y(rect), true);
Move(rect.left, workRect.top, RECT_SIZE_X(rect), RECT_SIZE_Y(rect), true);
}
bool CModelessDialog::Create(LPCTSTR templateName, HWND parentWindow)

View file

@ -130,7 +130,7 @@ public:
return result;
}
bool IsWindow() { return BOOLToBool(::IsWindow(_window)); }
bool std::move(int x, int y, int width, int height, bool repaint = true)
bool Move(int x, int y, int width, int height, bool repaint = true)
{ return BOOLToBool(::MoveWindow(_window, x, y, width, height, BoolToBOOL(repaint))); }
bool ChangeSubWindowSizeX(HWND hwnd, int xSize)