https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d9b2edcc59554353cb8ef5...
commit d9b2edcc59554353cb8ef5091242072dd7513b4d Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Tue Dec 24 13:08:35 2019 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Tue Dec 24 13:08:35 2019 +0900
[MSPAINT] Add const to SelectionModel::SetSrcAndDestRectFromPoints parameters --- base/applications/mspaint/selectionmodel.cpp | 2 +- base/applications/mspaint/selectionmodel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/applications/mspaint/selectionmodel.cpp b/base/applications/mspaint/selectionmodel.cpp index d03f3b12922..a476594ccc0 100644 --- a/base/applications/mspaint/selectionmodel.cpp +++ b/base/applications/mspaint/selectionmodel.cpp @@ -221,7 +221,7 @@ void SelectionModel::DrawFramePoly(HDC hDCImage) Poly(hDCImage, m_ptStack, m_iPtSP, 0, 0, 2, 0, FALSE, TRUE); /* draw the freehand selection inverted/xored */ }
-void SelectionModel::SetSrcAndDestRectFromPoints(POINT& ptFrom, POINT& ptTo) +void SelectionModel::SetSrcAndDestRectFromPoints(const POINT& ptFrom, const POINT& ptTo) { m_rcDest.left = m_rcSrc.left = min(ptFrom.x, ptTo.x); m_rcDest.top = m_rcSrc.top = min(ptFrom.y, ptTo.y); diff --git a/base/applications/mspaint/selectionmodel.h b/base/applications/mspaint/selectionmodel.h index 073cef7ea15..297d70b161f 100644 --- a/base/applications/mspaint/selectionmodel.h +++ b/base/applications/mspaint/selectionmodel.h @@ -55,7 +55,7 @@ public: HBITMAP GetBitmap(); int PtStackSize(); void DrawFramePoly(HDC hDCImage); - void SetSrcAndDestRectFromPoints(POINT& ptFrom, POINT& ptTo); + void SetSrcAndDestRectFromPoints(const POINT& ptFrom, const POINT& ptTo); void SetSrcRectSizeToZero(); BOOL IsSrcRectSizeNonzero(); void ModifyDestRect(POINT& ptDelta, int iAction);