summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-02 10:33:43 +0200
committerNoel Grandin <noel@peralex.com>2014-10-03 15:20:03 +0200
commit0abf268f3893ecc716088aa399e81a1ef31e13d2 (patch)
treeb3b467a7841a85bf30edc0fed73e539e7fcf33a6 /include
parent7d7b289da49ccd7979f650222bfb669cd6b623de (diff)
loplugin: cstylecast
Change-Id: I011a0eae37d01606d28c00f8ab3839f20bf309ce
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/childwin.hxx12
-rw-r--r--include/svl/itemset.hxx4
2 files changed, 8 insertions, 8 deletions
diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx
index 74818e24ac85..4fe4c008ee6a 100644
--- a/include/sfx2/childwin.hxx
+++ b/include/sfx2/childwin.hxx
@@ -320,7 +320,7 @@ public:
SfxChildWinInfo Class::GetInfo() const \
{ \
SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \
- ((SfxFloatingWindow*)GetWindow())->FillInfo( aInfo ); \
+ static_cast<SfxFloatingWindow*>(GetWindow())->FillInfo( aInfo ); \
return aInfo; }
#define SFX_IMPL_FLOATINGWINDOW_WITHID(Class, MyID) \
@@ -328,7 +328,7 @@ public:
SfxChildWinInfo Class::GetInfo() const \
{ \
SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \
- ((SfxFloatingWindow*)GetWindow())->FillInfo( aInfo ); \
+ static_cast<SfxFloatingWindow*>(GetWindow())->FillInfo( aInfo ); \
return aInfo; }
#define SFX_IMPL_MODELESSDIALOG_WITHID(Class, MyID) \
@@ -336,7 +336,7 @@ public:
SfxChildWinInfo Class::GetInfo() const \
{ \
SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \
- ((SfxModelessDialog*)GetWindow())->FillInfo( aInfo ); \
+ static_cast<SfxModelessDialog*>(GetWindow())->FillInfo( aInfo ); \
return aInfo; }
@@ -345,7 +345,7 @@ public:
SfxChildWinInfo Class::GetInfo() const \
{ \
SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \
- ((SfxDockingWindow*)GetWindow())->FillInfo( aInfo ); \
+ static_cast<SfxDockingWindow*>(GetWindow())->FillInfo( aInfo ); \
return aInfo; }
#define SFX_IMPL_DOCKINGWINDOW_WITHID(Class, MyID) \
@@ -353,7 +353,7 @@ public:
SfxChildWinInfo Class::GetInfo() const \
{ \
SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \
- ((SfxDockingWindow*)GetWindow())->FillInfo( aInfo ); \
+ static_cast<SfxDockingWindow*>(GetWindow())->FillInfo( aInfo ); \
return aInfo; }
#define SFX_IMPL_TOOLBOX(Class, MyID) \
@@ -361,7 +361,7 @@ public:
SfxChildWinInfo Class::GetInfo() const \
{ \
SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \
- ((SfxToolbox*)GetWindow())->FillInfo( aInfo ); \
+ static_cast<SfxToolbox*>(GetWindow())->FillInfo( aInfo ); \
return aInfo; }
bool GetPosSizeFromString( const OUString& rStr, Point& rPos, Size& rSize );
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx
index f2598ef842c5..aab9fb7224f2 100644
--- a/include/svl/itemset.hxx
+++ b/include/svl/itemset.hxx
@@ -34,8 +34,8 @@ typedef SfxPoolItem const** SfxItemArray;
#define USHORT_ARG int
#define SFX_ITEMSET_GET( rSet, pItem, ItemType, nSlotId, bDeep ) \
- const ItemType *pItem = (const ItemType*) \
- (rSet).GetItem( nSlotId, bDeep, TYPE(ItemType) )
+ const ItemType *pItem = static_cast<const ItemType*>( \
+ (rSet).GetItem( nSlotId, bDeep, TYPE(ItemType) ) )
class SVL_DLLPUBLIC SfxItemSet
{