summaryrefslogtreecommitdiff
path: root/cui/source/inc/hltpbase.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:24:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:24:27 +0200
commita4fdc347f8809638af5c598346ec4c978ee40dbe (patch)
treefed09f1d95b94dc4ab7d07ad1609ea960ddc2584 /cui/source/inc/hltpbase.hxx
parent85a2ec80c65dbcc7c031d21f584d0417f66f2164 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ieecc2f050499823e131504ecd487edc0fe3ea30a
Diffstat (limited to 'cui/source/inc/hltpbase.hxx')
-rw-r--r--cui/source/inc/hltpbase.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/inc/hltpbase.hxx b/cui/source/inc/hltpbase.hxx
index d155d6e42de7..2522ba866155 100644
--- a/cui/source/inc/hltpbase.hxx
+++ b/cui/source/inc/hltpbase.hxx
@@ -135,7 +135,7 @@ public:
virtual void ActivatePage( const SfxItemSet& rItemSet ) SAL_OVERRIDE;
virtual int DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
- bool IsMarkWndVisible () { return ((vcl::Window*)mpMarkWnd)->IsVisible(); }
+ bool IsMarkWndVisible () { return static_cast<vcl::Window*>(mpMarkWnd)->IsVisible(); }
Size GetSizeExtraWnd () { return ( mpMarkWnd->GetSizePixel() ); }
bool MoveToExtraWnd ( Point aNewPos, bool bDisConnectDlg = false );
@@ -148,8 +148,8 @@ protected:
virtual void SetMarkWndShouldOpen(bool bOpen);
void ShowMarkWnd ();
- void HideMarkWnd () { ( ( vcl::Window* ) mpMarkWnd )->Hide(); }
- void InvalidateMarkWnd () { ( ( vcl::Window* ) mpMarkWnd )->Invalidate(); }
+ void HideMarkWnd () { static_cast<vcl::Window*>(mpMarkWnd)->Hide(); }
+ void InvalidateMarkWnd () { static_cast<vcl::Window*>(mpMarkWnd)->Invalidate(); }
SfxDispatcher* GetDispatcher() const;