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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Aug 16 06:58:48 UTC 2018


 sc/source/ui/inc/gridwin.hxx  |    2 +-
 sc/source/ui/view/gridwin.cxx |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 9278de7a528052759bc3d94dcf6aba58ad6c17c6
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Aug 15 14:34:35 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Aug 16 08:58:17 2018 +0200

    loplugin:returnconstant in ScGridWindow
    
    Change-Id: I4b7cb0b5346cd21d6aa3b25dbe5e37a107b179b5
    Reviewed-on: https://gerrit.libreoffice.org/59133
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index ff0bd43ea955..b44976272721 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -235,7 +235,7 @@ class ScGridWindow : public vcl::Window, public DropTargetHelper, public DragSou
 
     bool            HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange );
 
-    bool            DropScroll( const Point& rMousePos );
+    void            DropScroll( const Point& rMousePos );
 
     sal_Int8        AcceptPrivateDrop( const AcceptDropEvent& rEvt );
     sal_Int8        ExecutePrivateDrop( const ExecuteDropEvent& rEvt );
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 21ca80104434..4bbdc97493e0 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -3325,7 +3325,7 @@ void ScGridWindow::UpdateInputContext()
                                 // sensitive range (Pixel)
 #define SCROLL_SENSITIVE 20
 
-bool ScGridWindow::DropScroll( const Point& rMousePos )
+void ScGridWindow::DropScroll( const Point& rMousePos )
 {
     SCCOL nDx = 0;
     SCROW nDy = 0;
@@ -3355,8 +3355,6 @@ bool ScGridWindow::DropScroll( const Point& rMousePos )
         if ( nDy != 0 )
             pViewData->GetView()->ScrollY( nDy, WhichV(eWhich) );
     }
-
-    return false;
 }
 
 static bool lcl_TestScenarioRedliningDrop( const ScDocument* pDoc, const ScRange& aDragRange)


More information about the Libreoffice-commits mailing list