summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-15 14:34:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-16 08:58:17 +0200
commit9278de7a528052759bc3d94dcf6aba58ad6c17c6 (patch)
tree3133a42196b7a918430f728f145283dd4cacf1d2 /sc
parentc60ef370a39e91974a242c7f780d7d8725fea7da (diff)
loplugin:returnconstant in ScGridWindow
Change-Id: I4b7cb0b5346cd21d6aa3b25dbe5e37a107b179b5 Reviewed-on: https://gerrit.libreoffice.org/59133 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/gridwin.hxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx4
2 files changed, 2 insertions, 4 deletions
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)