summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-08-17 10:46:27 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-08-17 13:15:54 +0200
commit6fd0d2af5069ec23b25b7e7e2e024df9e3319a0a (patch)
tree4bb90bf1e35cc99f97f23606e40ac86d868293b3 /tools/source
parentb5870d727685ec10447e8ae446ada895250fec2e (diff)
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/generic/gen.cxx4
1 files changed, 2 insertions, 2 deletions
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);