summaryrefslogtreecommitdiff
path: root/include/sfx2/viewsh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-20 12:38:10 +0200
committerNoel Grandin <noel@peralex.com>2015-01-26 08:42:28 +0200
commitb44cbb26efe1d0b0950b1e1613e131b506dc3876 (patch)
tree9b4d5d99e5dad0971079b997a02a6d96536709ca /include/sfx2/viewsh.hxx
parent26ad60aec69310fecd918f1c2e09056aa4782320 (diff)
new loplugin: change virtual methods to non-virtual
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
Diffstat (limited to 'include/sfx2/viewsh.hxx')
-rw-r--r--include/sfx2/viewsh.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx
index 8919d8fc0a58..3498dc98a5b7 100644
--- a/include/sfx2/viewsh.hxx
+++ b/include/sfx2/viewsh.hxx
@@ -172,9 +172,9 @@ public:
virtual ErrCode DoVerb(long nVerb);
- virtual void OutplaceActivated( bool bActive, SfxInPlaceClient* pClient );
- virtual void InplaceActivating( SfxInPlaceClient* pClient );
- virtual void InplaceDeactivated( SfxInPlaceClient* pClient );
+ void OutplaceActivated( bool bActive, SfxInPlaceClient* pClient );
+ void InplaceActivating( SfxInPlaceClient* pClient );
+ void InplaceDeactivated( SfxInPlaceClient* pClient );
virtual void UIActivating( SfxInPlaceClient* pClient );
virtual void UIDeactivated( SfxInPlaceClient* pClient );
@@ -188,7 +188,7 @@ public:
* has been set. By the time this is called the document has been fully
* imported.
*/
- virtual void Initialize();
+ void Initialize();
virtual bool PrepareClose( bool bUI = true );
virtual OUString GetSelectionText( bool bCompleteWords = false );
virtual bool HasSelection( bool bText = true ) const;
@@ -223,7 +223,7 @@ public:
virtual sal_uInt16 SetPrinter( SfxPrinter *pNewPrinter, sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false );
virtual bool HasPrintOptionsPage() const;
virtual SfxTabPage* CreatePrintOptionsPage( vcl::Window *pParent, const SfxItemSet &rOptions );
- virtual JobSetup GetJobSetup() const;
+ JobSetup GetJobSetup() const;
Printer* GetActivePrinter() const;
// Working set
@@ -256,7 +256,7 @@ public:
const Size& GetMargin() const;
void SetMargin( const Size& );
void DisconnectAllClients();
- virtual SfxFrame* GetSmartSelf( SfxFrame* pSelf, SfxMedium& rMedium );
+ SfxFrame* GetSmartSelf( SfxFrame* pSelf, SfxMedium& rMedium );
bool NewWindowAllowed() const { return !bNoNewWindow; }
void SetNewWindowAllowed( bool bSet ) { bNoNewWindow = !bSet; }