include/vcl/commandevent.hxx    |    2 +-
 sd/source/ui/view/viewshel.cxx  |    2 +-
 vcl/source/control/imivctl1.cxx |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b4dd91f3a10610924e736445e17506b49b619a70
Author:     sahil <gautamsahil1...@gmail.com>
AuthorDate: Sun Aug 13 14:17:20 2023 +0530
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Tue Sep 5 22:51:55 2023 +0200

    tdf#114441 - Convert use of sal_uLong to better integer types
    
    Updated scrolling related variables to double from sal_uLong
    
    Change-Id: Ibf4bb3d55b074b5d2e369e4bc708b87bdfa302b2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155644
    Tested-by: Jenkins
    Reviewed-by: Hossein <hoss...@libreoffice.org>

diff --git a/include/vcl/commandevent.hxx b/include/vcl/commandevent.hxx
index fc6ba290793f..9491137acea8 100644
--- a/include/vcl/commandevent.hxx
+++ b/include/vcl/commandevent.hxx
@@ -139,7 +139,7 @@ enum class CommandWheelMode
 };
 
 // Magic value used in mnLines field in CommandWheelData
-#define COMMAND_WHEEL_PAGESCROLL        (sal_uLong(0xFFFFFFFF))
+#define COMMAND_WHEEL_PAGESCROLL        (double(0xFFFFFFFF))
 
 class VCL_DLLPUBLIC CommandWheelData
 {
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index d4007eb77510..91fa6a2e4b53 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -736,7 +736,7 @@ bool ViewShell::HandleScrollCommand(const CommandEvent& 
rCEvt, ::sd::Window* pWi
                 {
                     if( mpContentWindow.get() == pWin )
                     {
-                        sal_uLong nScrollLines = pData->GetScrollLines();
+                        double nScrollLines = pData->GetScrollLines();
                         if(IsPageFlipMode())
                             nScrollLines = COMMAND_WHEEL_PAGESCROLL;
                         CommandWheelData aWheelData( 
pData->GetDelta(),pData->GetNotchDelta(),
diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx
index ae297a82e107..1364dc4f44d0 100644
--- a/vcl/source/control/imivctl1.cxx
+++ b/vcl/source/control/imivctl1.cxx
@@ -1844,7 +1844,7 @@ bool SvxIconChoiceCtrl_Impl::HandleScrollCommand( const 
CommandEvent& rCmd )
             const CommandWheelData* pData = rCmd.GetWheelData();
             if( pData && (CommandWheelMode::SCROLL == pData->GetMode()) && 
!pData->IsHorz() )
             {
-                sal_uLong nScrollLines = pData->GetScrollLines();
+                double nScrollLines = pData->GetScrollLines();
                 if( nScrollLines == COMMAND_WHEEL_PAGESCROLL )
                 {
                     nScrollDY = GetScrollBarPageSize( aVisSize.Width() );

Reply via email to