diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-12 08:21:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 14:05:41 +0000 |
commit | 6e72f0251bb8767942edf74f612547c12ca0cdf1 (patch) | |
tree | 0785de1a2f8995d1d4ede7889541bda9b59f893f /svx | |
parent | 7da80de2c75e048a08ea6e923a9f433a638a9f12 (diff) |
new loplugin unnecessary override
Change-Id: I88d3e33823d68745b98625050a8a274f9ef04bcb
Reviewed-on: https://gerrit.libreoffice.org/27135
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/imapwnd.cxx | 5 | ||||
-rw-r--r-- | svx/source/dialog/imapwnd.hxx | 2 | ||||
-rw-r--r-- | svx/source/form/datanavi.cxx | 6 | ||||
-rw-r--r-- | svx/source/form/fmshimp.cxx | 11 | ||||
-rw-r--r-- | svx/source/form/tabwin.cxx | 6 | ||||
-rw-r--r-- | svx/source/inc/datanavi.hxx | 1 | ||||
-rw-r--r-- | svx/source/inc/fmshimp.hxx | 2 | ||||
-rw-r--r-- | svx/source/inc/tabwin.hxx | 2 | ||||
-rw-r--r-- | svx/source/sidebar/styles/StylesPropertyPanel.cxx | 5 | ||||
-rw-r--r-- | svx/source/sidebar/styles/StylesPropertyPanel.hxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 13 | ||||
-rw-r--r-- | svx/source/svdraw/svdocapt.cxx | 16 | ||||
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 10 | ||||
-rw-r--r-- | svx/source/svdraw/svdovirt.cxx | 5 | ||||
-rw-r--r-- | svx/source/table/accessiblecell.cxx | 12 | ||||
-rw-r--r-- | svx/source/table/accessiblecell.hxx | 2 | ||||
-rw-r--r-- | svx/source/table/svdotable.cxx | 8 | ||||
-rw-r--r-- | svx/source/table/tablemodel.cxx | 12 | ||||
-rw-r--r-- | svx/source/table/tablemodel.hxx | 2 | ||||
-rw-r--r-- | svx/source/tbxctrls/itemwin.cxx | 10 | ||||
-rw-r--r-- | svx/source/tbxctrls/linectrl.cxx | 6 |
21 files changed, 2 insertions, 135 deletions
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx index 4ba77b9ba492..cbe50ac633a8 100644 --- a/svx/source/dialog/imapwnd.cxx +++ b/svx/source/dialog/imapwnd.cxx @@ -815,11 +815,6 @@ void IMapWindow::CreateDefaultObject() } } -void IMapWindow::KeyInput( const KeyEvent& rKEvt ) -{ - GraphCtrl::KeyInput( rKEvt ); -} - void IMapWindow::SelectFirstObject() { SdrPage* pPage = pModel->GetPage( 0 ); diff --git a/svx/source/dialog/imapwnd.hxx b/svx/source/dialog/imapwnd.hxx index 2ef4eeea41c1..74974a5b003d 100644 --- a/svx/source/dialog/imapwnd.hxx +++ b/svx/source/dialog/imapwnd.hxx @@ -137,8 +137,6 @@ public: void CreateDefaultObject(); void SelectFirstObject(); void StartPolyEdit(); - - virtual void KeyInput( const KeyEvent& rKEvt ) override; }; diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 281ffefa8fe8..650cb12a91d7 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -2185,12 +2185,6 @@ namespace svxform } - bool DataNavigator::Close() - { - return SfxDockingWindow::Close(); - } - - Size DataNavigator::CalcDockingSize( SfxChildAlignment eAlign ) { if ( ( eAlign == SfxChildAlignment::TOP ) || ( eAlign == SfxChildAlignment::BOTTOM ) ) diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index f989ff1b964b..f81e8cb0eb94 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -614,17 +614,6 @@ FmXFormShell_Base_Disambiguation::FmXFormShell_Base_Disambiguation( ::osl::Mutex { } -void SAL_CALL FmXFormShell_Base_Disambiguation::disposing() -{ - WeakComponentImplHelperBase::disposing(); - // Note: - // This is a HACK. - // Normally it should be sufficient to call the "disposing" of our direct - // base class, but SUN PRO 5 does not like this and claims there is a conflict - // with the XEventListener::disposing(EventObject) of our various listener - // base classes. -} - FmXFormShell::FmXFormShell( FmFormShell& _rShell, SfxViewFrame* _pViewFrame ) :FmXFormShell_BASE(m_aMutex) ,FmXFormShell_CFGBASE(OUString("Office.Common/Misc"), ConfigItemMode::DelayedUpdate) diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx index e9b06b34a04c..6e507f95bb3d 100644 --- a/svx/source/form/tabwin.cxx +++ b/svx/source/form/tabwin.cxx @@ -257,12 +257,6 @@ bool FmFieldWin::PreNotify( NotifyEvent& _rNEvt ) } -bool FmFieldWin::Close() -{ - return SfxFloatingWindow::Close(); -} - - void FmFieldWin::_propertyChanged(const css::beans::PropertyChangeEvent& evt) throw( css::uno::RuntimeException, std::exception ) { css::uno::Reference< css::form::XForm > xForm(evt.Source, css::uno::UNO_QUERY); diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx index 81b4ddff09cd..83d44467088b 100644 --- a/svx/source/inc/datanavi.hxx +++ b/svx/source/inc/datanavi.hxx @@ -379,7 +379,6 @@ namespace svxform protected: virtual void Resize() override; - virtual bool Close() override; virtual void GetFocus() override; virtual Size CalcDockingSize( SfxChildAlignment ) override; virtual SfxChildAlignment CheckAlignment( SfxChildAlignment, SfxChildAlignment ) override; diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx index 430b269543ce..d42f13fcd21a 100644 --- a/svx/source/inc/fmshimp.hxx +++ b/svx/source/inc/fmshimp.hxx @@ -135,7 +135,7 @@ class FmXFormShell_Base_Disambiguation : public FmXFormShell_BD_BASE using css::beans::XPropertyChangeListener::disposing; protected: FmXFormShell_Base_Disambiguation( ::osl::Mutex& _rMutex ); - virtual void SAL_CALL disposing() override; + using WeakComponentImplHelperBase::disposing; }; diff --git a/svx/source/inc/tabwin.hxx b/svx/source/inc/tabwin.hxx index 2774ccbc035b..07b09e00b6de 100644 --- a/svx/source/inc/tabwin.hxx +++ b/svx/source/inc/tabwin.hxx @@ -83,7 +83,7 @@ public: virtual ~FmFieldWin(); virtual void dispose() override; virtual void Resize() override; - virtual bool Close() override; + using SfxFloatingWindow::Close; virtual void GetFocus() override; virtual bool PreNotify( NotifyEvent& _rNEvt ) override; virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, diff --git a/svx/source/sidebar/styles/StylesPropertyPanel.cxx b/svx/source/sidebar/styles/StylesPropertyPanel.cxx index 5c1631c694ec..c93277f0913e 100644 --- a/svx/source/sidebar/styles/StylesPropertyPanel.cxx +++ b/svx/source/sidebar/styles/StylesPropertyPanel.cxx @@ -28,11 +28,6 @@ StylesPropertyPanel::~StylesPropertyPanel() disposeOnce(); } -void StylesPropertyPanel::dispose() -{ - PanelLayout::dispose(); -} - void StylesPropertyPanel::DataChanged( const DataChangedEvent& /*rEvent*/) { diff --git a/svx/source/sidebar/styles/StylesPropertyPanel.hxx b/svx/source/sidebar/styles/StylesPropertyPanel.hxx index 1b16267bff53..dcbd210086ad 100644 --- a/svx/source/sidebar/styles/StylesPropertyPanel.hxx +++ b/svx/source/sidebar/styles/StylesPropertyPanel.hxx @@ -20,7 +20,6 @@ class StylesPropertyPanel: { public: virtual ~StylesPropertyPanel(); - virtual void dispose() override; static VclPtr<vcl::Window> Create ( vcl::Window* pParent, diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 7b3d6a94a193..0f4acc0f137e 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -1409,10 +1409,6 @@ sal_uInt16 SdrObjCustomShape::GetObjIdentifier() const } -void SdrObjCustomShape::RecalcSnapRect() -{ - SdrTextObj::RecalcSnapRect(); -} const Rectangle& SdrObjCustomShape::GetSnapRect() const { return SdrTextObj::GetSnapRect(); @@ -2177,11 +2173,6 @@ void SdrObjCustomShape::DragCreateObject( SdrDragStat& rStat ) bSnapRectDirty=true; } -bool SdrObjCustomShape::BegCreate( SdrDragStat& rDrag ) -{ - return SdrTextObj::BegCreate( rDrag ); -} - bool SdrObjCustomShape::MovCreate(SdrDragStat& rStat) { SdrView* pView = rStat.GetView(); // #i37448# @@ -2546,10 +2537,6 @@ bool SdrObjCustomShape::AdjustTextFrameWidthAndHeight() } return bRet; } -bool SdrObjCustomShape::BegTextEdit( SdrOutliner& rOutl ) -{ - return SdrTextObj::BegTextEdit( rOutl ); -} void SdrObjCustomShape::TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, Rectangle* pViewInit, Rectangle* pViewMin) const { Size aPaperMin,aPaperMax; diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx index dfd94564165a..c47647b853b2 100644 --- a/svx/source/svdraw/svdocapt.cxx +++ b/svx/source/svdraw/svdocapt.cxx @@ -639,27 +639,11 @@ const Point& SdrCaptionObj::GetAnchorPos() const return SdrRectObj::GetAnchorPos(); } -void SdrCaptionObj::RecalcSnapRect() -{ - SdrRectObj::RecalcSnapRect(); - // #i32599# - // TODO: Implementation missing. -} - const Rectangle& SdrCaptionObj::GetSnapRect() const { return SdrRectObj::GetSnapRect(); } -void SdrCaptionObj::NbcSetSnapRect(const Rectangle& rRect) -{ - // #i32599# - // Move back to see the rectangle of the underlying SdrRectObj - // as the SnapRect, without the TailPos. That simplifies SnapRect - // handling again, if not allows it at all... - SdrRectObj::NbcSetSnapRect(rRect); -} - const Rectangle& SdrCaptionObj::GetLogicRect() const { return maRect; diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 2dc637106cb2..4fd6ce448b66 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -944,16 +944,6 @@ void SdrGrafObj::NbcShear(const Point& rRef, long nAngle, double tn, bool bVShea SdrRectObj::NbcShear(rRef, nAngle, tn, bVShear); } -void SdrGrafObj::NbcSetSnapRect(const Rectangle& rRect) -{ - SdrRectObj::NbcSetSnapRect(rRect); -} - -void SdrGrafObj::NbcSetLogicRect( const Rectangle& rRect) -{ - SdrRectObj::NbcSetLogicRect(rRect); -} - SdrObjGeoData* SdrGrafObj::NewGeoData() const { return new SdrGrafObjGeoData; diff --git a/svx/source/svdraw/svdovirt.cxx b/svx/source/svdraw/svdovirt.cxx index 587363daf1dc..d8d59494b759 100644 --- a/svx/source/svdraw/svdovirt.cxx +++ b/svx/source/svdraw/svdovirt.cxx @@ -128,11 +128,6 @@ void SdrVirtObj::RecalcBoundRect() aOutRect+=aAnchor; } -void SdrVirtObj::SetChanged() -{ - SdrObject::SetChanged(); -} - SdrVirtObj* SdrVirtObj::Clone() const { return new SdrVirtObj(this->rRefObj); // only a further reference diff --git a/svx/source/table/accessiblecell.cxx b/svx/source/table/accessiblecell.cxx index 3c6491caabd1..47245fa2de70 100644 --- a/svx/source/table/accessiblecell.cxx +++ b/svx/source/table/accessiblecell.cxx @@ -385,18 +385,6 @@ awt::Size SAL_CALL AccessibleCell::getSize() throw (RuntimeException, std::excep } -void SAL_CALL AccessibleCell::addFocusListener ( const css::uno::Reference< css::awt::XFocusListener >& xListener) throw (css::uno::RuntimeException) -{ - AccessibleComponentBase::addFocusListener( xListener ); -} - - -void SAL_CALL AccessibleCell::removeFocusListener (const css::uno::Reference< css::awt::XFocusListener >& xListener ) throw (css::uno::RuntimeException) -{ - AccessibleComponentBase::removeFocusListener( xListener ); -} - - void SAL_CALL AccessibleCell::grabFocus() throw (css::uno::RuntimeException, std::exception) { AccessibleComponentBase::grabFocus(); diff --git a/svx/source/table/accessiblecell.hxx b/svx/source/table/accessiblecell.hxx index 0279b6a96fbb..df9de137c21b 100644 --- a/svx/source/table/accessiblecell.hxx +++ b/svx/source/table/accessiblecell.hxx @@ -83,8 +83,6 @@ public: virtual css::awt::Point SAL_CALL getLocation() throw(css::uno::RuntimeException, std::exception) override; virtual css::awt::Point SAL_CALL getLocationOnScreen() throw(css::uno::RuntimeException, std::exception) override; virtual css::awt::Size SAL_CALL getSize() throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addFocusListener ( const css::uno::Reference< css::awt::XFocusListener >& xListener) throw (css::uno::RuntimeException) override; - virtual void SAL_CALL removeFocusListener (const css::uno::Reference< css::awt::XFocusListener >& xListener ) throw (css::uno::RuntimeException) override; virtual void SAL_CALL grabFocus() throw (css::uno::RuntimeException, std::exception) override; virtual sal_Int32 SAL_CALL getForeground() throw(css::uno::RuntimeException, std::exception) override; virtual sal_Int32 SAL_CALL getBackground() throw(css::uno::RuntimeException, std::exception) override; diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index 73e82524660c..8657a59a0a4c 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -2046,14 +2046,6 @@ bool SdrTableObj::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2D return SdrTextObj::TRGetBaseGeometry( rMatrix, rPolyPolygon ); } -// sets the base geometry of the object using infos contained in the homogen 3x3 matrix. -// If it's an SdrPathObj it will use the provided geometry information. The Polygon has -// to use (0,0) as upper left and will be scaled to the given size in the matrix. -void SdrTableObj::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& rPolyPolygon ) -{ - SdrTextObj::TRSetBaseGeometry( rMatrix, rPolyPolygon ); -} - bool SdrTableObj::IsReallyEdited() const { return pEdtOutl && pEdtOutl->IsModified(); diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx index e7062289ca48..a63520ca57f4 100644 --- a/svx/source/table/tablemodel.cxx +++ b/svx/source/table/tablemodel.cxx @@ -339,18 +339,6 @@ void TableModel::dispose() throw (RuntimeException, std::exception) } -void SAL_CALL TableModel::addEventListener( const Reference< XEventListener >& xListener ) throw (RuntimeException, std::exception) -{ - TableModelBase::addEventListener( xListener ); -} - - -void SAL_CALL TableModel::removeEventListener( const Reference< XEventListener >& xListener ) throw (RuntimeException, std::exception) -{ - TableModelBase::removeEventListener( xListener ); -} - - // XModifiable diff --git a/svx/source/table/tablemodel.hxx b/svx/source/table/tablemodel.hxx index 3f6f82b6f697..3a03b5173784 100644 --- a/svx/source/table/tablemodel.hxx +++ b/svx/source/table/tablemodel.hxx @@ -99,8 +99,6 @@ public: // XComponent virtual void SAL_CALL dispose( ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) throw (css::uno::RuntimeException, std::exception) override; // XModifiable virtual sal_Bool SAL_CALL isModified( ) throw (css::uno::RuntimeException, std::exception) override; diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx index 8dd2ed669fd9..cd37b984df68 100644 --- a/svx/source/tbxctrls/itemwin.cxx +++ b/svx/source/tbxctrls/itemwin.cxx @@ -305,16 +305,6 @@ void SvxMetricField::ReleaseFocus_Impl() } } -void SvxMetricField::Down() -{ - MetricField::Down(); -} - -void SvxMetricField::Up() -{ - MetricField::Up(); -} - void SvxMetricField::SetCoreUnit( SfxMapUnit eUnit ) { ePoolUnit = eUnit; diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx index ef930dd858e2..54c8a686e69e 100644 --- a/svx/source/tbxctrls/linectrl.cxx +++ b/svx/source/tbxctrls/linectrl.cxx @@ -483,12 +483,6 @@ void SvxLineEndWindow::StartSelection() } -bool SvxLineEndWindow::Close() -{ - return SfxPopupWindow::Close(); -} - - void SvxLineEndWindow::StateChanged( sal_uInt16 nSID, SfxItemState, const SfxPoolItem* pState ) { |