[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Sat Sep 23 18:27:56 UTC 2017


 sw/source/uibase/docvw/PostItMgr.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit a026f888e6e4b42dd8fea3bec92a2bca63428f15
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Sep 23 16:50:38 2017 +0100

    these are cast to sal_Int32 immediately
    
    Change-Id: I2357ecb5fecd3c232803530fcd131d54e63b85fb
    Reviewed-on: https://gerrit.libreoffice.org/42695
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index 90f0b8ffbcbd..7e318eacd7bf 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -2140,31 +2140,31 @@ void SwPostItMgr::Rescale()
 sal_Int32 SwPostItMgr::GetInitialAnchorDistance() const
 {
     const Fraction& f( mpEditWin->GetMapMode().GetScaleY() );
-    return long(POSTIT_INITIAL_ANCHOR_DISTANCE * f);
+    return sal_Int32(POSTIT_INITIAL_ANCHOR_DISTANCE * f);
 }
 
 sal_Int32 SwPostItMgr::GetSpaceBetween() const
 {
     const Fraction& f( mpEditWin->GetMapMode().GetScaleY() );
-    return long(POSTIT_SPACE_BETWEEN * f);
+    return sal_Int32(POSTIT_SPACE_BETWEEN * f);
 }
 
 sal_Int32 SwPostItMgr::GetScrollSize() const
 {
     const Fraction& f( mpEditWin->GetMapMode().GetScaleY() );
-    return long((POSTIT_SPACE_BETWEEN + POSTIT_MINIMUMSIZE_WITH_META) * f);
+    return sal_Int32((POSTIT_SPACE_BETWEEN + POSTIT_MINIMUMSIZE_WITH_META) * f);
 }
 
 sal_Int32 SwPostItMgr::GetMinimumSizeWithMeta() const
 {
     const Fraction& f( mpEditWin->GetMapMode().GetScaleY() );
-    return long(POSTIT_MINIMUMSIZE_WITH_META * f);
+    return sal_Int32(POSTIT_MINIMUMSIZE_WITH_META * f);
 }
 
 sal_Int32 SwPostItMgr::GetSidebarScrollerHeight() const
 {
     const Fraction& f( mpEditWin->GetMapMode().GetScaleY() );
-    return long(POSTIT_SCROLL_SIDEBAR_HEIGHT * f);
+    return sal_Int32(POSTIT_SCROLL_SIDEBAR_HEIGHT * f);
 }
 
 void SwPostItMgr::SetSpellChecking()


More information about the Libreoffice-commits mailing list