summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authortagezi <lera.goncharuk@gmail.com>2017-12-07 22:27:21 +0200
committerMichael Stahl <mstahl@redhat.com>2017-12-11 22:02:48 +0100
commitbaadb184e84568acd1c6efda95c3715b05818da3 (patch)
treeda662ed1115c4b527bd5c67690ef0e738087b818 /sw/inc
parent09815cf40fad561991bec4bea15b3f677c937b02 (diff)
tdf#96505 Deleted suffix long (L) where it is possible
Change-Id: Iafe5ea3822f7f0170d2fb041fea604e95dbfa015 Reviewed-on: https://gerrit.libreoffice.org/46041 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/swtypes.hxx2
-rw-r--r--sw/inc/view.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/swtypes.hxx b/sw/inc/swtypes.hxx
index 226609ab668e..f4a8138d1ed8 100644
--- a/sw/inc/swtypes.hxx
+++ b/sw/inc/swtypes.hxx
@@ -85,7 +85,7 @@ const SwTwips lMinBorder = 1134;
// Margin left and above document.
// Half of it is gap between the pages.
//TODO: Replace with SwViewOption::defDocumentBorder
-#define DOCUMENTBORDER 284L
+#define DOCUMENTBORDER 284
// Constant strings.
SW_DLLPUBLIC extern OUString aEmptyOUStr; // remove once aEmptyOUStr can be changed to OUString
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index a865b4184ee5..6e8f4b7d9511 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -643,12 +643,12 @@ public:
inline long SwView::GetXScroll() const
{
- return m_aVisArea.GetWidth() * nScrollX / 100L;
+ return (m_aVisArea.GetWidth() * nScrollX) / 100;
}
inline long SwView::GetYScroll() const
{
- return m_aVisArea.GetHeight() * nScrollY / 100L;
+ return (m_aVisArea.GetHeight() * nScrollY) / 100;
}
inline const SwDocShell *SwView::GetDocShell() const