summaryrefslogtreecommitdiff
path: root/include/svl/itemset.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/svl/itemset.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/svl/itemset.hxx')
-rw-r--r--include/svl/itemset.hxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx
index 5cb28c262103..8fd2e3f997fd 100644
--- a/include/svl/itemset.hxx
+++ b/include/svl/itemset.hxx
@@ -83,7 +83,7 @@ public:
sal_uInt16 Count() const { return _nCount; }
sal_uInt16 TotalCount() const;
- virtual const SfxPoolItem& Get( sal_uInt16 nWhich, bool bSrchInParent = true ) const;
+ const SfxPoolItem& Get( sal_uInt16 nWhich, bool bSrchInParent = true ) const;
const SfxPoolItem* GetItem( sal_uInt16 nWhich, bool bSrchInParent = true,
TypeId aItemType = 0 ) const;
@@ -97,10 +97,10 @@ public:
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem** ppItem = NULL) const;
- virtual void DisableItem(sal_uInt16 nWhich);
- virtual void InvalidateItem( sal_uInt16 nWhich );
- virtual sal_uInt16 ClearItem( sal_uInt16 nWhich = 0);
- virtual void ClearInvalidItems( bool bHardDefault = false );
+ void DisableItem(sal_uInt16 nWhich);
+ void InvalidateItem( sal_uInt16 nWhich );
+ sal_uInt16 ClearItem( sal_uInt16 nWhich = 0);
+ void ClearInvalidItems( bool bHardDefault = false );
void InvalidateAllItems(); // HACK(via nWhich = 0) ???
void InvalidateDefaultItems();
@@ -116,12 +116,12 @@ public:
SfxItemState eDontCareAs = SfxItemState::UNKNOWN,
SfxItemState eDefaultAs = SfxItemState::UNKNOWN );
- virtual bool Set( const SfxItemSet&, bool bDeep = true );
+ bool Set( const SfxItemSet&, bool bDeep = true );
- virtual void Intersect( const SfxItemSet& rSet );
- virtual void MergeValues( const SfxItemSet& rSet, bool bOverwriteDefaults = false );
- virtual void Differentiate( const SfxItemSet& rSet );
- virtual void MergeValue( const SfxPoolItem& rItem, bool bOverwriteDefaults = false );
+ void Intersect( const SfxItemSet& rSet );
+ void MergeValues( const SfxItemSet& rSet, bool bOverwriteDefaults = false );
+ void Differentiate( const SfxItemSet& rSet );
+ void MergeValue( const SfxPoolItem& rItem, bool bOverwriteDefaults = false );
SfxItemPool* GetPool() const { return _pPool; }
const sal_uInt16* GetRanges() const { return _pWhichRanges; }
@@ -129,9 +129,9 @@ public:
void MergeRange( sal_uInt16 nFrom, sal_uInt16 nTo );
const SfxItemSet* GetParent() const { return _pParent; }
- virtual SvStream & Load( SvStream &, bool bDirect = false,
+ SvStream & Load( SvStream &, bool bDirect = false,
const SfxItemPool *pRefPool = 0 );
- virtual SvStream & Store( SvStream &, bool bDirect = false ) const;
+ SvStream & Store( SvStream &, bool bDirect = false ) const;
bool operator==(const SfxItemSet &) const;
sal_Int32 getHash() const;