From 6fd0d2af5069ec23b25b7e7e2e024df9e3319a0a Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 17 Aug 2021 10:46:27 +0300 Subject: Rename SaturatingSet[XY] to SaturatingSetPos[XY] ... to align with commit 4639ca2f878b04ffc50d9c20d92e90464d2d67a7 Change-Id: Ibec7a451a61ca7f2d141a9624369a6f9656ed468 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120562 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- tools/source/generic/gen.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/source') diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index 027c7b9356b1..29e7da9b98fa 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -69,14 +69,14 @@ void tools::Rectangle::SaturatingSetSize(const Size& rSize) SetHeightEmpty(); } -void tools::Rectangle::SaturatingSetX(tools::Long x) +void tools::Rectangle::SaturatingSetPosX(tools::Long x) { if (!IsWidthEmpty()) nRight = o3tl::saturating_add(nRight, x - nLeft); nLeft = x; } -void tools::Rectangle::SaturatingSetY(tools::Long y) +void tools::Rectangle::SaturatingSetPosY(tools::Long y) { if (!IsHeightEmpty()) nBottom = o3tl::saturating_add(nBottom, y - nTop); -- cgit