summaryrefslogtreecommitdiffstats
path: root/include/svtools/ivctrl.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/svtools/ivctrl.hxx
parentconvert to use std random instead of boost (diff)
downloadcore-b44cbb26efe1d0b0950b1e1613e131b506dc3876.tar.gz
core-b44cbb26efe1d0b0950b1e1613e131b506dc3876.zip
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/svtools/ivctrl.hxx')
-rw-r--r--include/svtools/ivctrl.hxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx
index f23436962193..2c086637bddc 100644
--- a/include/svtools/ivctrl.hxx
+++ b/include/svtools/ivctrl.hxx
@@ -228,10 +228,10 @@ class SVT_DLLPUBLIC SvtIconChoiceCtrl : public Control
protected:
virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
- virtual bool EditedEntry( SvxIconChoiceCtrlEntry*, const OUString& rNewText, bool bCancelled );
- virtual void DocumentRectChanged();
- virtual void VisibleRectChanged();
- virtual bool EditingEntry( SvxIconChoiceCtrlEntry* pEntry );
+ bool EditedEntry( SvxIconChoiceCtrlEntry*, const OUString& rNewText, bool bCancelled );
+ void DocumentRectChanged();
+ void VisibleRectChanged();
+ bool EditingEntry( SvxIconChoiceCtrlEntry* pEntry );
virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE;
virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
@@ -240,11 +240,11 @@ protected:
virtual void Resize() SAL_OVERRIDE;
virtual void GetFocus() SAL_OVERRIDE;
virtual void LoseFocus() SAL_OVERRIDE;
- virtual void ClickIcon();
+ void ClickIcon();
virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
virtual void RequestHelp( const HelpEvent& rHEvt ) SAL_OVERRIDE;
- virtual void DrawEntryImage(
+ void DrawEntryImage(
SvxIconChoiceCtrlEntry* pEntry,
const Point& rPos,
OutputDevice& rDev );
@@ -320,10 +320,10 @@ public:
void SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry* pEntry = 0 );
#endif
- virtual bool HasBackground() const;
- virtual bool HasFont() const;
- virtual bool HasFontTextColor() const;
- virtual bool HasFontFillColor() const;
+ bool HasBackground() const;
+ bool HasFont() const;
+ bool HasFontTextColor() const;
+ bool HasFontFillColor() const;
void SetFontColorToBackground ( bool bDo = true ) { _bAutoFontColor = bDo; }
bool AutoFontColor () { return _bAutoFontColor; }