Kaydet (Commit) 918f7407 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast, involving pointer to incomplete type

Change-Id: I557a5d25e65244f06a855cd670c85094fd5ed3c0
üst 6fe664f2
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <sal/config.h>
#include <bodyfrm.hxx>
#include <hintids.hxx> #include <hintids.hxx>
#include <editeng/keepitem.hxx> #include <editeng/keepitem.hxx>
#include <editeng/hyphenzoneitem.hxx> #include <editeng/hyphenzoneitem.hxx>
...@@ -176,7 +179,7 @@ const SwBodyFrm *SwTxtFrm::FindBodyFrm() const ...@@ -176,7 +179,7 @@ const SwBodyFrm *SwTxtFrm::FindBodyFrm() const
const SwFrm *pFrm = GetUpper(); const SwFrm *pFrm = GetUpper();
while( pFrm && !pFrm->IsBodyFrm() ) while( pFrm && !pFrm->IsBodyFrm() )
pFrm = pFrm->GetUpper(); pFrm = pFrm->GetUpper();
return (const SwBodyFrm*)pFrm; return static_cast<const SwBodyFrm*>(pFrm);
} }
return 0; return 0;
} }
...@@ -997,7 +1000,7 @@ void SwTxtFrm::FormatAdjust( SwTxtFormatter &rLine, ...@@ -997,7 +1000,7 @@ void SwTxtFrm::FormatAdjust( SwTxtFormatter &rLine,
SplitFrm( nEnd ); SplitFrm( nEnd );
} }
const SwFrm *pBodyFrm = (const SwFrm*)(FindBodyFrm()); const SwFrm *pBodyFrm = FindBodyFrm();
const long nBodyHeight = pBodyFrm ? ( IsVertical() ? const long nBodyHeight = pBodyFrm ? ( IsVertical() ?
pBodyFrm->Frm().Width() : pBodyFrm->Frm().Width() :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment