loplugin:unnecessaryvirtual

Change-Id: I572b83949c7e643536b7d62567760546509e4d9f
Reviewed-on: https://gerrit.libreoffice.org/30514
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2016-11-02 16:35:25 +02:00
parent ea6b378221
commit 880bcf9ed8
14 changed files with 7 additions and 36 deletions

View File

@@ -181,7 +181,7 @@ public:
virtual void SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize = nullptr, const sal_Int16* pOrient = nullptr); virtual void SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize = nullptr, const sal_Int16* pOrient = nullptr);
const SvxBrushItem* GetBrush() const {return pGraphicBrush;} const SvxBrushItem* GetBrush() const {return pGraphicBrush;}
void SetGraphic( const OUString& rName ); void SetGraphic( const OUString& rName );
virtual sal_Int16 GetVertOrient() const; sal_Int16 GetVertOrient() const;
void SetGraphicSize(const Size& rSet) {aGraphicSize = rSet;} void SetGraphicSize(const Size& rSet) {aGraphicSize = rSet;}
const Size& GetGraphicSize() const {return aGraphicSize;} const Size& GetGraphicSize() const {return aGraphicSize;}

View File

@@ -137,7 +137,6 @@ public:
FloatingWindow* GetFloatingWindow() const; FloatingWindow* GetFloatingWindow() const;
virtual void Resizing( Size& rSize );
static void RegisterChildWindowContext(SfxModule*, sal_uInt16, SfxChildWinContextFactory*); static void RegisterChildWindowContext(SfxModule*, sal_uInt16, SfxChildWinContextFactory*);
}; };

View File

@@ -46,7 +46,6 @@ public:
WinBits nBits ); WinBits nBits );
virtual void Resize() override; virtual void Resize() override;
virtual void Resizing( Size& rSize ) override;
virtual bool Close() override; virtual bool Close() override;
}; };

View File

@@ -433,7 +433,7 @@ public:
bool IsSecurityOptOpenReadOnly() const; bool IsSecurityOptOpenReadOnly() const;
void SetSecurityOptOpenReadOnly( bool bOpenReadOnly = true ); void SetSecurityOptOpenReadOnly( bool bOpenReadOnly = true );
virtual Size GetFirstPageSize(); Size GetFirstPageSize();
bool DoClose(); bool DoClose();
virtual void PrepareReload(); virtual void PrepareReload();
std::shared_ptr<GDIMetaFile> GetPreviewMetaFile( bool bFullContent = false ) const; std::shared_ptr<GDIMetaFile> GetPreviewMetaFile( bool bFullContent = false ) const;

View File

@@ -146,7 +146,7 @@ public:
const OUString& GetName() const; const OUString& GetName() const;
virtual const SfxPoolItem& Put( const SfxPoolItem&, sal_uInt16 nWhich = 0 ); virtual const SfxPoolItem& Put( const SfxPoolItem&, sal_uInt16 nWhich = 0 );
virtual void Remove( const SfxPoolItem& ); void Remove( const SfxPoolItem& );
const SfxPoolItem& GetDefaultItem( sal_uInt16 nWhich ) const; const SfxPoolItem& GetDefaultItem( sal_uInt16 nWhich ) const;
const SfxPoolItem* LoadItem( SvStream &rStream, const SfxPoolItem* LoadItem( SvStream &rStream,

View File

@@ -182,7 +182,7 @@ public:
virtual void ClearPageView() override; virtual void ClearPageView() override;
virtual void HideSdrPage() override; virtual void HideSdrPage() override;
virtual bool IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const; bool IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const;
// Returns sal_True if objects, points or glue points are selected by drawing a frame // Returns sal_True if objects, points or glue points are selected by drawing a frame
// (as long as the frame is drawn). // (as long as the frame is drawn).

View File

@@ -636,7 +636,7 @@ public:
void ImpSetAnchorPos(const Point& rPnt); void ImpSetAnchorPos(const Point& rPnt);
virtual void NbcSetAnchorPos(const Point& rPnt); virtual void NbcSetAnchorPos(const Point& rPnt);
virtual void SetAnchorPos(const Point& rPnt); virtual void SetAnchorPos(const Point& rPnt);
virtual const Point& GetAnchorPos() const; const Point& GetAnchorPos() const;
/// Snap is not done on the BoundRect but if possible on logic coordinates /// Snap is not done on the BoundRect but if possible on logic coordinates
/// (i.e. without considering stroke width, ...) /// (i.e. without considering stroke width, ...)

View File

@@ -490,7 +490,7 @@ public:
virtual void NbcSetOutlinerParaObject(OutlinerParaObject* pTextObject) override; virtual void NbcSetOutlinerParaObject(OutlinerParaObject* pTextObject) override;
void NbcSetOutlinerParaObjectForText( OutlinerParaObject* pTextObject, SdrText* pText ); void NbcSetOutlinerParaObjectForText( OutlinerParaObject* pTextObject, SdrText* pText );
virtual OutlinerParaObject* GetOutlinerParaObject() const override; virtual OutlinerParaObject* GetOutlinerParaObject() const override;
virtual OutlinerParaObject* GetEditOutlinerParaObject() const; OutlinerParaObject* GetEditOutlinerParaObject() const;
virtual void NbcReformatText() override; virtual void NbcReformatText() override;
virtual void ReformatText() override; virtual void ReformatText() override;

View File

@@ -199,8 +199,6 @@ public:
virtual bool Close(); virtual bool Close();
virtual void TitleButtonClick( TitleButton nButton ); virtual void TitleButtonClick( TitleButton nButton );
virtual void Pin();
virtual void Roll();
virtual void Resizing( Size& rSize ); virtual void Resizing( Size& rSize );
virtual void Resize() override; virtual void Resize() override;
virtual Size GetOptimalSize() const override; virtual Size GetOptimalSize() const override;

View File

@@ -83,7 +83,7 @@ public:
// moved from inline to *.cxx // moved from inline to *.cxx
virtual bool MouseButtonDown(const MouseEvent& rMEvt); // { return FALSE; } virtual bool MouseButtonDown(const MouseEvent& rMEvt); // { return FALSE; }
virtual sal_uInt8 Command(const CommandEvent& rCEvt); sal_uInt8 Command(const CommandEvent& rCEvt);
virtual void Activate(); virtual void Activate();
virtual void Deactivate(); virtual void Deactivate();

View File

@@ -537,10 +537,6 @@ FloatingWindow* SfxChildWindowContext::GetFloatingWindow() const
} }
} }
void SfxChildWindowContext::Resizing( Size& )
{
}
void SfxChildWindow::SetFactory_Impl( SfxChildWinFactory *pF ) void SfxChildWindow::SetFactory_Impl( SfxChildWinFactory *pF )
{ {
pImpl->pFact = pF; pImpl->pFact = pF;

View File

@@ -64,16 +64,6 @@ void SfxNavigator::Resize()
pWrapper->GetContextWindow()->SetSizePixel( GetOutputSizePixel() ); pWrapper->GetContextWindow()->SetSizePixel( GetOutputSizePixel() );
} }
void SfxNavigator::Resizing( Size &rSize )
{
SfxDockingWindow::Resizing( rSize );
SfxChildWindowContext *pCon = GetChildWindow_Impl()->GetContext_Impl();
DBG_ASSERT( pCon, "No Context!" );
if ( pCon )
pCon->Resizing( rSize );
}
bool SfxNavigator::Close() bool SfxNavigator::Close()
{ {
DBG_ASSERT( GetChildWindow_Impl()->GetContext_Impl(), "No Context!" ); DBG_ASSERT( GetChildWindow_Impl()->GetContext_Impl(), "No Context!" );

View File

@@ -908,7 +908,6 @@ bool ImplStdBorderWindowView::MouseButtonDown( const MouseEvent& rMEvt )
pClientWindow->RollDown(); pClientWindow->RollDown();
else else
pClientWindow->RollUp(); pClientWindow->RollUp();
pClientWindow->Roll();
} }
} }
} }
@@ -981,7 +980,6 @@ bool ImplStdBorderWindowView::Tracking( const TrackingEvent& rTEvt )
pClientWindow->RollDown(); pClientWindow->RollDown();
else else
pClientWindow->RollUp(); pClientWindow->RollUp();
pClientWindow->Roll();
} }
} }
} }
@@ -1059,7 +1057,6 @@ bool ImplStdBorderWindowView::Tracking( const TrackingEvent& rTEvt )
{ {
SystemWindow* pClientWindow = static_cast<SystemWindow*>(pBorderWindow->ImplGetClientWindow()); SystemWindow* pClientWindow = static_cast<SystemWindow*>(pBorderWindow->ImplGetClientWindow());
pClientWindow->SetPin( !pClientWindow->IsPinned() ); pClientWindow->SetPin( !pClientWindow->IsPinned() );
pClientWindow->Pin();
} }
} }
} }

View File

@@ -298,14 +298,6 @@ void SystemWindow::TitleButtonClick( TitleButton )
{ {
} }
void SystemWindow::Pin()
{
}
void SystemWindow::Roll()
{
}
void SystemWindow::Resizing( Size& ) void SystemWindow::Resizing( Size& )
{ {
} }