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 /include | |
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 'include')
31 files changed, 5 insertions, 74 deletions
diff --git a/include/connectivity/TTableHelper.hxx b/include/connectivity/TTableHelper.hxx index 0953a7d150ea..0000cf974a45 100644 --- a/include/connectivity/TTableHelper.hxx +++ b/include/connectivity/TTableHelper.hxx @@ -138,9 +138,6 @@ namespace connectivity virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() const override; css::uno::Reference< css::sdbc::XConnection> getConnection() const; - virtual void SAL_CALL acquire() throw() override; - virtual void SAL_CALL release() throw() override; - // XRename virtual void SAL_CALL rename( const OUString& newName ) throw(css::sdbc::SQLException, css::container::ElementExistException, css::uno::RuntimeException, std::exception) override; diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx index 2a941617be17..ede52eb18f7f 100644 --- a/include/editeng/svxrtf.hxx +++ b/include/editeng/svxrtf.hxx @@ -254,9 +254,6 @@ protected: // is called for each token that is recognized in CallParser virtual void NextToken( int nToken ) override; - virtual void ReadBitmapData() override; - virtual void ReadOLEData() override; - void ReadStyleTable(); void ReadColorTable(); void ReadFontTable(); diff --git a/include/framework/addonmenu.hxx b/include/framework/addonmenu.hxx index fec0de71b894..a8478ed9660a 100644 --- a/include/framework/addonmenu.hxx +++ b/include/framework/addonmenu.hxx @@ -39,7 +39,6 @@ class FWE_DLLPUBLIC AddonMenu : public PopupMenu public: AddonMenu( const css::uno::Reference< css::frame::XFrame >& rFrame ); virtual ~AddonMenu(); - virtual void dispose() override; protected: css::uno::Reference< css::frame::XFrame > m_xFrame; diff --git a/include/sfx2/sidebar/Panel.hxx b/include/sfx2/sidebar/Panel.hxx index 2cb5e6c9e9a1..1ea28de425e6 100644 --- a/include/sfx2/sidebar/Panel.hxx +++ b/include/sfx2/sidebar/Panel.hxx @@ -56,10 +56,8 @@ public: bool HasIdPredicate (const OUString& rsId) const; const OUString& GetId() const { return msPanelId;} - virtual void Paint (vcl::RenderContext& rRenderContext, const Rectangle& rUpdateArea) override; virtual void Resize() override; virtual void DataChanged (const DataChangedEvent& rEvent) override; - virtual void Activate() override; virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; private: diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx b/include/sfx2/sidebar/SidebarDockingWindow.hxx index 382b48da7f78..e725031c8aa5 100644 --- a/include/sfx2/sidebar/SidebarDockingWindow.hxx +++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx @@ -37,7 +37,7 @@ public: virtual ~SidebarDockingWindow(); virtual void dispose() override; - virtual bool Close() override; + using SfxDockingWindow::Close; protected: // Window overridables diff --git a/include/sfx2/stbitem.hxx b/include/sfx2/stbitem.hxx index 8ec6cc13ae10..f4970d884cac 100644 --- a/include/sfx2/stbitem.hxx +++ b/include/sfx2/stbitem.hxx @@ -70,10 +70,10 @@ protected: virtual void SAL_CALL release() throw() override; // XEventListener - virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) override; + using svt::StatusbarController::disposing; // XComponent - virtual void SAL_CALL dispose() throw (css::uno::RuntimeException, std::exception) override; + using svt::StatusbarController::dispose; // XStatusListener virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) diff --git a/include/sfx2/styledlg.hxx b/include/sfx2/styledlg.hxx index 93ae6db0dd07..a1c799e347c1 100644 --- a/include/sfx2/styledlg.hxx +++ b/include/sfx2/styledlg.hxx @@ -33,8 +33,6 @@ private: SfxStyleSheetBase* pStyle; DECL_DLLPRIVATE_LINK_TYPED( CancelHdl, Button *, void ); sal_uInt16 m_nOrganizerId; -protected: - virtual void RefreshInputSet() override; public: SfxStyleDialog(vcl::Window* pParent, const OUString& rID, diff --git a/include/sfx2/tbxctrl.hxx b/include/sfx2/tbxctrl.hxx index 6e66fb7cba40..6c0d322d2bcb 100644 --- a/include/sfx2/tbxctrl.hxx +++ b/include/sfx2/tbxctrl.hxx @@ -173,10 +173,6 @@ protected: bool hasBigImages() const; public: - // XEventListener - using ::cppu::OPropertySetHelper::disposing; - virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) override; - // XComponent virtual void SAL_CALL dispose() throw (css::uno::RuntimeException, std::exception) override; diff --git a/include/svtools/brwhead.hxx b/include/svtools/brwhead.hxx index 08fe07b1fbe3..3f07347db07e 100644 --- a/include/svtools/brwhead.hxx +++ b/include/svtools/brwhead.hxx @@ -35,7 +35,6 @@ public: virtual void dispose() override; protected: virtual void Command( const CommandEvent& rCEvt ) override; - virtual void Select() override; virtual void EndDrag() override; public: diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index 497321e05989..b46c1243429b 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -542,7 +542,6 @@ namespace svt // callbacks for the data window virtual void ImplStartTracking() override; - virtual void ImplTracking() override; virtual void ImplEndTracking() override; // when changing a row: diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx index 686ad59e8f2a..108c8779d69f 100644 --- a/include/svtools/inettbc.hxx +++ b/include/svtools/inettbc.hxx @@ -54,7 +54,6 @@ friend class SvtURLBox_Impl; protected: virtual bool Notify( NotifyEvent& rNEvt ) override; virtual void Select() override; - virtual void Modify() override; virtual bool PreNotify( NotifyEvent& rNEvt ) override; public: diff --git a/include/svtools/popupwindowcontroller.hxx b/include/svtools/popupwindowcontroller.hxx index 73475c43c5f0..0d87f1792950 100644 --- a/include/svtools/popupwindowcontroller.hxx +++ b/include/svtools/popupwindowcontroller.hxx @@ -64,8 +64,6 @@ public: // XToolbarController virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL click() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL doubleClick() throw (css::uno::RuntimeException, std::exception) override; virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createPopupWindow() throw (css::uno::RuntimeException, std::exception) override; virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createItemWindow( const css::uno::Reference< css::awt::XWindow >& Parent ) throw (css::uno::RuntimeException, std::exception) override; private: diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx index 6a0b866e4d65..03b4a2a08228 100644 --- a/include/svtools/svtabbx.hxx +++ b/include/svtools/svtabbx.hxx @@ -104,7 +104,6 @@ public: sal_uLong GetEntryPos( const OUString&, sal_uInt16 nCol = 0xffff ); sal_uLong GetEntryPos( const SvTreeListEntry* pEntry ) const; - virtual void Resize() override; void SetTabJustify( sal_uInt16 nTab, SvTabJustify ); }; diff --git a/include/svtools/wizardmachine.hxx b/include/svtools/wizardmachine.hxx index 4289d6bca289..fd41de1d9412 100644 --- a/include/svtools/wizardmachine.hxx +++ b/include/svtools/wizardmachine.hxx @@ -104,7 +104,6 @@ namespace svt */ OWizardPage(vcl::Window *pParent, const OString& rID, const OUString& rUIXMLDescription); virtual ~OWizardPage(); - virtual void dispose() override; // IWizardPageController overridables virtual void initializePage() override; diff --git a/include/svx/itemwin.hxx b/include/svx/itemwin.hxx index 90167d57ebe0..d5f96cf178d4 100644 --- a/include/svx/itemwin.hxx +++ b/include/svx/itemwin.hxx @@ -75,8 +75,6 @@ class SVX_DLLPUBLIC SvxMetricField : public MetricField protected: virtual void Modify() override; - virtual void Down() override; - virtual void Up() override; // just to be sure virtual bool PreNotify( NotifyEvent& rNEvt ) override; virtual bool Notify( NotifyEvent& rNEvt ) override; diff --git a/include/svx/linectrl.hxx b/include/svx/linectrl.hxx index 555ce471b143..b41d261b2b10 100644 --- a/include/svx/linectrl.hxx +++ b/include/svx/linectrl.hxx @@ -98,7 +98,6 @@ private: protected: virtual void Resizing( Size& rSize ) override; virtual void Resize() override; - virtual bool Close() override; virtual void PopupModeEnd() override; /** This function is called when the window gets the focus. It grabs diff --git a/include/svx/svdoashp.hxx b/include/svx/svdoashp.hxx index 4ff71004d2bb..69cd93f7b1ec 100644 --- a/include/svx/svdoashp.hxx +++ b/include/svx/svdoashp.hxx @@ -188,8 +188,6 @@ public: virtual void SetModel(SdrModel* pNewModel) override; - virtual void RecalcSnapRect() override; - virtual const Rectangle& GetSnapRect() const override; virtual const Rectangle& GetCurrentBoundRect() const override; virtual const Rectangle& GetLogicRect() const override; @@ -217,7 +215,6 @@ public: virtual bool beginSpecialDrag(SdrDragStat& rDrag) const override; virtual bool applySpecialDrag(SdrDragStat& rDrag) override; - virtual bool BegCreate( SdrDragStat& rStat ) override; virtual bool MovCreate(SdrDragStat& rStat) override; // #i37448# virtual bool EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) override; @@ -233,7 +230,6 @@ public: virtual bool IsAutoGrowHeight() const override; virtual bool IsAutoGrowWidth() const override; virtual void SetVerticalWriting( bool bVertical ) override; - virtual bool BegTextEdit( SdrOutliner& rOutl ) override; virtual void TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, Rectangle* pViewInit, Rectangle* pViewMin) const override; virtual void EndTextEdit( SdrOutliner& rOutl ) override; virtual void TakeTextAnchorRect( Rectangle& rAnchorRect ) const override; diff --git a/include/svx/svdocapt.hxx b/include/svx/svdocapt.hxx index 24d9e0b953ca..34093992a884 100644 --- a/include/svx/svdocapt.hxx +++ b/include/svx/svdocapt.hxx @@ -121,9 +121,7 @@ public: virtual void NbcSetAnchorPos(const Point& rPnt) override; virtual const Point& GetAnchorPos() const override; - virtual void RecalcSnapRect() override; virtual const Rectangle& GetSnapRect() const override; - virtual void NbcSetSnapRect(const Rectangle& rRect) override; virtual const Rectangle& GetLogicRect() const override; virtual void NbcSetLogicRect(const Rectangle& rRect) override; diff --git a/include/svx/svdograf.hxx b/include/svx/svdograf.hxx index 22085c95a55a..f52ef362f374 100644 --- a/include/svx/svdograf.hxx +++ b/include/svx/svdograf.hxx @@ -179,8 +179,6 @@ public: virtual void NbcRotate(const Point& rRef, long nAngle, double sn, double cs) override; virtual void NbcMirror(const Point& rRef1, const Point& rRef2) override; virtual void NbcShear (const Point& rRef, long nAngle, double tn, bool bVShear) override; - virtual void NbcSetSnapRect(const Rectangle& rRect) override; - virtual void NbcSetLogicRect(const Rectangle& rRect) override; virtual SdrObjGeoData* NewGeoData() const override; virtual void SaveGeoData(SdrObjGeoData& rGeo) const override; virtual void RestGeoData(const SdrObjGeoData& rGeo) override; diff --git a/include/svx/svdotable.hxx b/include/svx/svdotable.hxx index d81d37dbbf3e..b39a9c65a76e 100644 --- a/include/svx/svdotable.hxx +++ b/include/svx/svdotable.hxx @@ -267,11 +267,6 @@ public: // with the base geometry and returns TRUE. Otherwise it returns FALSE. virtual bool TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& rPolyPolygon) const override; - // 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. - virtual void TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& rPolyPolygon) override; - // #103836# iterates over the paragraphs of a given SdrObject and removes all // hard set character attributes with the which ids contained in the // given vector diff --git a/include/svx/svdovirt.hxx b/include/svx/svdovirt.hxx index 7ee8c6f2fa47..64f5caf13778 100644 --- a/include/svx/svdovirt.hxx +++ b/include/svx/svdovirt.hxx @@ -62,7 +62,6 @@ public: virtual const Rectangle& GetCurrentBoundRect() const override; virtual const Rectangle& GetLastBoundRect() const override; virtual void RecalcBoundRect() override; - virtual void SetChanged() override; virtual SdrVirtObj* Clone() const override; SdrVirtObj& operator=(const SdrVirtObj& rObj); diff --git a/include/test/bootstrapfixture.hxx b/include/test/bootstrapfixture.hxx index 5e24753fe668..3930f8ac85bc 100644 --- a/include/test/bootstrapfixture.hxx +++ b/include/test/bootstrapfixture.hxx @@ -53,7 +53,6 @@ public: virtual ~BootstrapFixture(); virtual void setUp() override; - virtual void tearDown() override; static void validate(const OUString& rURL, ValidationFormat); }; diff --git a/include/test/unoapi_test.hxx b/include/test/unoapi_test.hxx index d728175eaa39..32c20997808f 100644 --- a/include/test/unoapi_test.hxx +++ b/include/test/unoapi_test.hxx @@ -26,7 +26,6 @@ public: void createFileURL(const OUString& aFileBase, OUString& rFilePath); virtual void setUp() override; - virtual void tearDown() override; protected: void closeDocument( css::uno::Reference< css::lang::XComponent > const & xDocument ); diff --git a/include/unotools/streamhelper.hxx b/include/unotools/streamhelper.hxx index 7b6091a48d77..c4c586fbb55e 100644 --- a/include/unotools/streamhelper.hxx +++ b/include/unotools/streamhelper.hxx @@ -52,10 +52,6 @@ public: ,m_nActPos(0) ,m_nAvailable(_nAvailable){} -// css::uno::XInterface - virtual void SAL_CALL acquire() throw () override; - virtual void SAL_CALL release() throw () override; - // css::io::XInputStream virtual sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override; virtual sal_Int32 SAL_CALL readSomeBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override; diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx index dede22f9d680..c72a0d334270 100644 --- a/include/vcl/ctrl.hxx +++ b/include/vcl/ctrl.hxx @@ -126,8 +126,6 @@ public: virtual void EnableRTL ( bool bEnable = true ) override; - virtual void GetFocus() override; - virtual void LoseFocus() override; virtual bool Notify( NotifyEvent& rNEvt ) override; virtual void StateChanged( StateChangedType nStateChange ) override; virtual void Resize() override; diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx index 31cceaa6439c..b6a0d2808551 100644 --- a/include/vcl/dockwin.hxx +++ b/include/vcl/dockwin.hxx @@ -319,9 +319,7 @@ public: virtual void setPosSizePixel( long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All ) override; - void SetPosSizePixel( const Point& rNewPos, - const Size& rNewSize ) override - { Window::SetPosSizePixel( rNewPos, rNewSize ); } + using Window::SetPosSizePixel; Point GetPosPixel() const override; Size GetSizePixel() const override; void SetOutputSizePixel( const Size& rNewSize ) override; diff --git a/include/vcl/spinfld.hxx b/include/vcl/spinfld.hxx index f3346431ad89..17e0c82f050a 100644 --- a/include/vcl/spinfld.hxx +++ b/include/vcl/spinfld.hxx @@ -59,7 +59,6 @@ protected: explicit SpinField( WindowType nTyp ); virtual bool Notify( NotifyEvent& rNEvt ) override; - virtual void Command( const CommandEvent& rCEvt ) override; void EndDropDown(); diff --git a/include/vcl/split.hxx b/include/vcl/split.hxx index 8557d77ac5c0..9d92b47d43b9 100644 --- a/include/vcl/split.hxx +++ b/include/vcl/split.hxx @@ -71,8 +71,6 @@ public: virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; virtual void Tracking( const TrackingEvent& rTEvt ) override; - virtual bool Notify( NotifyEvent& rNEvt ) override; - virtual void GetFocus() override; virtual void LoseFocus() override; virtual void KeyInput( const KeyEvent& rKEvt ) override; diff --git a/include/vcl/status.hxx b/include/vcl/status.hxx index e31a6944f938..e8fa7c0876d7 100644 --- a/include/vcl/status.hxx +++ b/include/vcl/status.hxx @@ -111,7 +111,6 @@ public: virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override; - virtual void Move() override; virtual void Resize() override; virtual void RequestHelp( const HelpEvent& rHEvt ) override; virtual void StateChanged( StateChangedType nType ) override; diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index f87e8efccb27..06df8594c644 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -284,7 +284,6 @@ public: virtual void LoseFocus() override; virtual void KeyInput( const KeyEvent& rKEvt ) override; - virtual bool PrepareToggleFloatingMode() override; virtual void ToggleFloatingMode() override; virtual void StartDocking() override; virtual bool Docking( const Point& rPos, Rectangle& rRect ) override; diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 923fc7744fad..bab4395c9a63 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -784,12 +784,6 @@ protected: virtual void ClipToPaintRegion( Rectangle& rDstRect ) override; virtual bool UsePolyPolygonForComplexGradient() override; - virtual void DrawGradientWallpaper(long nX, long nY, long nWidth, long nHeight, - const Wallpaper& rWallpaper) override - { - OutputDevice::DrawGradientWallpaper(nX, nY, nWidth, nHeight, rWallpaper); - } - virtual void ApplySettings(vcl::RenderContext& rRenderContext); public: bool HasMirroredGraphics() const override; @@ -812,18 +806,9 @@ public: virtual void KeyUp( const KeyEvent& rKEvt ); virtual void PrePaint(vcl::RenderContext& rRenderContext); virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect); + using OutputDevice::Erase; void Erase(vcl::RenderContext& rRenderContext); - virtual void Erase() override - { - OutputDevice::Erase(); - } - - virtual void Erase(const Rectangle& rRect) override - { - OutputDevice::Erase(rRect); - } - virtual void Draw( ::OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags ); virtual void Move(); virtual void Resize(); |