diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-02 10:33:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-03 15:20:03 +0200 |
commit | 0abf268f3893ecc716088aa399e81a1ef31e13d2 (patch) | |
tree | b3b467a7841a85bf30edc0fed73e539e7fcf33a6 /include/sfx2/childwin.hxx | |
parent | 7d7b289da49ccd7979f650222bfb669cd6b623de (diff) |
loplugin: cstylecast
Change-Id: I011a0eae37d01606d28c00f8ab3839f20bf309ce
Diffstat (limited to 'include/sfx2/childwin.hxx')
-rw-r--r-- | include/sfx2/childwin.hxx | 12 |
1 files changed, 6 insertions, 6 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 ); |