diff options
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/fcontnr.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/request.hxx | 8 | ||||
-rw-r--r-- | include/sfx2/tabdlg.hxx | 1 |
3 files changed, 6 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); |