summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-01-13 16:09:24 +0100
committerAndras Timar <andras.timar@collabora.com>2022-02-14 12:09:29 +0100
commit3341bdf24373633ff1232119c69179f427b78a67 (patch)
tree060b3761c96bdea9f6905ed9c3eb561ad3f73eb3 /sfx2
parentff02eb3ef21afe0417c1447c36453ef0896161cf (diff)
Fix ambiguous error in VS
Change-Id: If18ef06f5a27a4266b21df4ba07bd5bc01255f55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128381 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit af168ae749dfd816fe029bbca5967fc3d5a1aa81) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129439 Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/ipclient.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index 73fe6f241bae..92b763327ea9 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -94,9 +94,9 @@ public:
tools::Rectangle lcl_negateRectX(const tools::Rectangle& rRect)
{
return tools::Rectangle(
- std::max(0l, -rRect.Right()),
+ std::max(static_cast<tools::Long>(0l), -rRect.Right()),
rRect.Top(),
- std::max(0l, -rRect.Left()),
+ std::max(static_cast<tools::Long>(0l), -rRect.Left()),
rRect.Bottom());
}