From 48dc1e48d0fed5e00a3e4b5edf11a90fcc55b5ed Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Feb 2019 08:49:39 +0200 Subject: loplugin:unnecessaryoverride look for more patterns like bool Foo::bar() { b = Super::bar(); return b; } Change-Id: I5e4c8005a3da7d7487c9039c35dcbb1d17e65bd7 Reviewed-on: https://gerrit.libreoffice.org/68418 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sw/source/uibase/inc/conpoly.hxx | 1 - sw/source/uibase/ribbar/conpoly.cxx | 7 ------- 2 files changed, 8 deletions(-) (limited to 'sw/source/uibase') diff --git a/sw/source/uibase/inc/conpoly.hxx b/sw/source/uibase/inc/conpoly.hxx index f44ed07d5adc..d1fad7db3e94 100644 --- a/sw/source/uibase/inc/conpoly.hxx +++ b/sw/source/uibase/inc/conpoly.hxx @@ -28,7 +28,6 @@ public: ConstPolygon(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); // Mouse- & Key-Events - virtual bool MouseMove(const MouseEvent& rMEvt) override; virtual bool MouseButtonUp(const MouseEvent& rMEvt) override; virtual void Activate(const sal_uInt16 nSlotId) override; // activate function diff --git a/sw/source/uibase/ribbar/conpoly.cxx b/sw/source/uibase/ribbar/conpoly.cxx index 247306be78b6..a7ee32b2249f 100644 --- a/sw/source/uibase/ribbar/conpoly.cxx +++ b/sw/source/uibase/ribbar/conpoly.cxx @@ -33,13 +33,6 @@ ConstPolygon::ConstPolygon(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* p { } -bool ConstPolygon::MouseMove(const MouseEvent& rMEvt) -{ - bool bReturn = SwDrawBase::MouseMove(rMEvt); - - return bReturn; -} - bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt) { bool bReturn = false; -- cgit