summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-02 07:36:46 +0200
committerNoel Grandin <noel@peralex.com>2014-10-02 07:37:20 +0200
commit039b887c54fd7e8cd8a4964d1633fdfc300e938e (patch)
treef65f1ea0296ea30bccb1dc79bf1066e718bc517e /include
parent059f5a95b245252d72ea0930668bb222103dbd14 (diff)
loplugin: cstylecast
Change-Id: I4a230f45e91773fca7d537e91c9e9fb54773cf10
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/fcontnr.hxx2
-rw-r--r--include/sfx2/request.hxx8
-rw-r--r--include/sfx2/tabdlg.hxx1
-rw-r--r--include/svl/itemset.hxx4
4 files changed, 10 insertions, 5 deletions
diff --git a/include/sfx2/fcontnr.hxx b/include/sfx2/fcontnr.hxx
index 99f77fb76f43..450e83857c80 100644
--- a/include/sfx2/fcontnr.hxx
+++ b/include/sfx2/fcontnr.hxx
@@ -54,7 +54,7 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool* = 0 ) const SAL_OVERRIDE
{ return new SfxRefItem( *this ); }
virtual bool operator==( const SfxPoolItem& rL) const SAL_OVERRIDE
- { return ((SfxRefItem&)rL).maRef == maRef; }
+ { return static_cast<const SfxRefItem&>(rL).maRef == maRef; }
const tools::SvRef<SvRefBase>& GetValue() const { return maRef; }
};
diff --git a/include/sfx2/request.hxx b/include/sfx2/request.hxx
index 35eb7b1a4cc9..a47f96292624 100644
--- a/include/sfx2/request.hxx
+++ b/include/sfx2/request.hxx
@@ -113,11 +113,11 @@ private:
#define SFX_REQUEST_ARG(rReq, pItem, ItemType, nSlotId, bDeep) \
- const ItemType *pItem = (const ItemType*) \
- rReq.GetArg( nSlotId, bDeep, TYPE(ItemType) )
+ const ItemType *pItem = static_cast<const ItemType*>( \
+ rReq.GetArg( nSlotId, bDeep, TYPE(ItemType) ) )
#define SFX_ITEMSET_ARG(pArgs, pItem, ItemType, nSlotId, bDeep) \
- const ItemType *pItem = (const ItemType*) \
- SfxRequest::GetItem( pArgs, nSlotId, bDeep, TYPE(ItemType) )
+ const ItemType *pItem = static_cast<const ItemType*>( \
+ SfxRequest::GetItem( pArgs, nSlotId, bDeep, TYPE(ItemType) ) )
#endif
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx
index a061793372bf..c4f0e989afa1 100644
--- a/include/sfx2/tabdlg.hxx
+++ b/include/sfx2/tabdlg.hxx
@@ -211,6 +211,7 @@ public:
void Start( bool bShow = true );
const SfxItemSet* GetExampleSet() const { return pExampleSet; }
+ SfxItemSet* GetExampleSet() { return pExampleSet; }
SfxViewFrame* GetViewFrame() const { return pFrame; }
void SetApplyHandler(const Link& _rHdl);
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx
index f2598ef842c5..418eb8666dec 100644
--- a/include/svl/itemset.hxx
+++ b/include/svl/itemset.hxx
@@ -95,6 +95,10 @@ public:
bool bSrchInParent = true,
const SfxPoolItem **ppItem = 0 ) const;
+ SfxItemState GetItemState( sal_uInt16 nWhich,
+ bool bSrchInParent = true,
+ SfxPoolItem **ppItem = 0 );
+
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem** ppItem = NULL) const;
virtual void DisableItem(sal_uInt16 nWhich);