diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-20 12:38:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-26 08:42:28 +0200 |
commit | b44cbb26efe1d0b0950b1e1613e131b506dc3876 (patch) | |
tree | 9b4d5d99e5dad0971079b997a02a6d96536709ca /include/basic/sbmod.hxx | |
parent | 26ad60aec69310fecd918f1c2e09056aa4782320 (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/basic/sbmod.hxx')
-rw-r--r-- | include/basic/sbmod.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx index 3c60c668e386..f0cd12a30976 100644 --- a/include/basic/sbmod.hxx +++ b/include/basic/sbmod.hxx @@ -102,21 +102,21 @@ public: virtual SbxVariable* Find( const OUString&, SbxClassType ) SAL_OVERRIDE; - virtual const OUString& GetSource() const; + const OUString& GetSource() const; const OUString& GetSource32() const { return aOUSource;} const OUString& GetComment() const { return aComment; } - virtual void SetSource( const OUString& r ); + void SetSource( const OUString& r ); void SetSource32( const OUString& r ); - virtual bool Compile(); - virtual bool IsCompiled() const; + bool Compile(); + bool IsCompiled() const; const SbxObject* FindType( const OUString& aTypeName ) const; - virtual bool IsBreakable( sal_uInt16 nLine ) const; - virtual bool IsBP( sal_uInt16 nLine ) const; - virtual bool SetBP( sal_uInt16 nLine ); - virtual bool ClearBP( sal_uInt16 nLine ); - virtual void ClearAllBP(); + bool IsBreakable( sal_uInt16 nLine ) const; + bool IsBP( sal_uInt16 nLine ) const; + bool SetBP( sal_uInt16 nLine ); + bool ClearBP( sal_uInt16 nLine ); + void ClearAllBP(); // Store only image, no source (needed for new password protection) bool StoreBinaryData( SvStream& ); |