Kaydet (Commit) 9278de7a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:returnconstant in ScGridWindow

Change-Id: I4b7cb0b5346cd21d6aa3b25dbe5e37a107b179b5
Reviewed-on: https://gerrit.libreoffice.org/59133
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c60ef370
...@@ -235,7 +235,7 @@ class ScGridWindow : public vcl::Window, public DropTargetHelper, public DragSou ...@@ -235,7 +235,7 @@ class ScGridWindow : public vcl::Window, public DropTargetHelper, public DragSou
bool HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange ); 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 AcceptPrivateDrop( const AcceptDropEvent& rEvt );
sal_Int8 ExecutePrivateDrop( const ExecuteDropEvent& rEvt ); sal_Int8 ExecutePrivateDrop( const ExecuteDropEvent& rEvt );
......
...@@ -3325,7 +3325,7 @@ void ScGridWindow::UpdateInputContext() ...@@ -3325,7 +3325,7 @@ void ScGridWindow::UpdateInputContext()
// sensitive range (Pixel) // sensitive range (Pixel)
#define SCROLL_SENSITIVE 20 #define SCROLL_SENSITIVE 20
bool ScGridWindow::DropScroll( const Point& rMousePos ) void ScGridWindow::DropScroll( const Point& rMousePos )
{ {
SCCOL nDx = 0; SCCOL nDx = 0;
SCROW nDy = 0; SCROW nDy = 0;
...@@ -3355,8 +3355,6 @@ bool ScGridWindow::DropScroll( const Point& rMousePos ) ...@@ -3355,8 +3355,6 @@ bool ScGridWindow::DropScroll( const Point& rMousePos )
if ( nDy != 0 ) if ( nDy != 0 )
pViewData->GetView()->ScrollY( nDy, WhichV(eWhich) ); pViewData->GetView()->ScrollY( nDy, WhichV(eWhich) );
} }
return false;
} }
static bool lcl_TestScenarioRedliningDrop( const ScDocument* pDoc, const ScRange& aDragRange) static bool lcl_TestScenarioRedliningDrop( const ScDocument* pDoc, const ScRange& aDragRange)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment