summaryrefslogtreecommitdiff
path: root/sfx2/source/inc/templdgi.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 /sfx2/source/inc/templdgi.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 'sfx2/source/inc/templdgi.hxx')
-rw-r--r--sfx2/source/inc/templdgi.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx
index fa7a26b90964..b7219a30ccba 100644
--- a/sfx2/source/inc/templdgi.hxx
+++ b/sfx2/source/inc/templdgi.hxx
@@ -208,8 +208,8 @@ protected:
virtual void CheckItem( sal_uInt16 /*nMesId*/, bool /*bCheck*/ = true ) {}
virtual bool IsCheckedItem( sal_uInt16 /*nMesId*/ ) { return true; }
virtual void LoadedFamilies() {}
- virtual void Update() { UpdateStyles_Impl(UPDATE_FAMILY_LIST); }
- virtual void InvalidateBindings();
+ void Update() { UpdateStyles_Impl(UPDATE_FAMILY_LIST); }
+ void InvalidateBindings();
virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pIten ) = 0;
virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled = true ) = 0;
virtual void ClearFamilyList() = 0;
@@ -267,10 +267,10 @@ public:
DECL_LINK( MenuSelectHdl, Menu * );
virtual void EnableEdit( bool b = true ) { bCanEdit = b; }
- virtual void EnableDel( bool b = true ) { bCanDel = b; }
- virtual void EnableNew( bool b = true ) { bCanNew = b; }
- virtual void EnableHide( bool b = true ) { bCanHide = b; }
- virtual void EnableShow( bool b = true ) { bCanShow = b; }
+ void EnableDel( bool b = true ) { bCanDel = b; }
+ void EnableNew( bool b = true ) { bCanNew = b; }
+ void EnableHide( bool b = true ) { bCanHide = b; }
+ void EnableShow( bool b = true ) { bCanShow = b; }
vcl::Window* GetWindow() { return pWindow; }
@@ -281,7 +281,7 @@ public:
OUString GetSelectedEntry() const;
SfxObjectShell* GetObjectShell() const { return pCurObjShell; }
- virtual void PrepareDeleteAction(); // disable buttons, change button text, etc. when del is going to happen
+ void PrepareDeleteAction(); // disable buttons, change button text, etc. when del is going to happen
inline bool CanEdit( void ) const { return bCanEdit; }
inline bool CanDel( void ) const { return bCanDel; }
@@ -290,7 +290,7 @@ public:
inline bool CanShow( void ) const { return bCanShow; }
// normally for derivates from SvTreeListBoxes, but in this case the dialog handles context menus
- virtual PopupMenu* CreateContextMenu( void );
+ PopupMenu* CreateContextMenu( void );
};
class DropToolBox_Impl : public ToolBox, public DropTargetHelper
@@ -323,7 +323,7 @@ private:
DECL_LINK( MenuSelectHdl, Menu* );
protected:
- virtual void Command( const CommandEvent& rMEvt );
+ void Command( const CommandEvent& rMEvt );
virtual void EnableEdit( bool = true ) SAL_OVERRIDE;
virtual void EnableItem( sal_uInt16 nMesId, bool bCheck = true ) SAL_OVERRIDE;
virtual void CheckItem( sal_uInt16 nMesId, bool bCheck = true ) SAL_OVERRIDE;