summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-05 23:34:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-07 15:18:06 +0100
commit6fe664f24bf086520248b8fd606b6696c63ed3f4 (patch)
tree8ec0d8a568b0b1b78a4a7599f52eb4be811bbb47
parentc60dd5d6870c30b239b4ba5ff3100b07a38d0502 (diff)
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: Ic42daa13650bf880ce69c7e8a95c12d6cfa476da
-rw-r--r--sw/source/core/layout/flowfrm.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/layout/flowfrm.cxx b/sw/source/core/layout/flowfrm.cxx
index 2b538cd66ef7..893875fc48ae 100644
--- a/sw/source/core/layout/flowfrm.cxx
+++ b/sw/source/core/layout/flowfrm.cxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <bodyfrm.hxx>
#include "swtable.hxx"
#include "rootfrm.hxx"
#include "pagefrm.hxx"
@@ -1881,7 +1884,7 @@ bool SwFlowFrm::MoveFwd( bool bMakePage, bool bPageBreak, bool bMoveAlways )
OSL_ENSURE( pStart || ( m_rThis.IsTabFrm() && !static_cast<SwTabFrm&>(m_rThis).Lower() ),
"MoveFwd: Missing Content" );
SwLayoutFrm* pBody = pStart ? ( pStart->IsTxtFrm() ?
- (SwLayoutFrm*)static_cast<SwTxtFrm*>(pStart)->FindBodyFrm() : 0 ) : 0;
+ const_cast<SwBodyFrm *>(static_cast<SwTxtFrm*>(pStart)->FindBodyFrm()) : 0 ) : 0;
if( pBody )
bFtnMoved = pBody->MoveLowerFtns( pStart, pOldBoss, pNewBoss,
false);