diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:47 +0200 |
commit | b2c8ea3a0253ce87f1b292fbb19b461a53c14912 (patch) | |
tree | 853cc34d4ced72c029f9b5bc4b3077d8b1944412 /sw/source/core/crsr/crsrsh.cxx | |
parent | bc2becdf1a12a1020584ee808c965e41f1837383 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8d27ae80d209159690182ab91e272cf00e9f863d
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 5464ce356371..0b8aba3ca019 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -491,7 +491,7 @@ bool SwCrsrShell::bColumnChange() if(pParent!=NULL) { pCurrCol=static_cast<SwFrm*>(pParent)->FindColFrm(); - pCurrFrm = (SwFrm*)pParent; + pCurrFrm = static_cast<SwFrm*>(pParent); } else { @@ -2163,7 +2163,7 @@ void SwCrsrShell::ShGetFcs( bool bUpdate ) /** Get current frame in which the cursor is positioned. */ SwContentFrm *SwCrsrShell::GetCurrFrm( const bool bCalcFrm ) const { - SET_CURR_SHELL( (SwViewShell*)this ); + SET_CURR_SHELL( static_cast<SwViewShell*>(const_cast<SwCrsrShell *>(this)) ); SwContentFrm *pRet = 0; SwContentNode *pNd = m_pCurCrsr->GetContentNode(); if ( pNd ) |