diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-05 23:54:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-07 15:18:06 +0100 |
commit | 6a2affb8659c0b96a35b99d51dc7415e2ed63511 (patch) | |
tree | d5ef1a7922b4e395b32ea67b2d378f8cf5dbc05d | |
parent | 3278a635f8555ea1530eaca47e0cd5c864e1afcb (diff) |
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I2d4349644bf335b27a1945705f0379aefc5bb869
-rw-r--r-- | sw/source/core/text/porfly.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx index 634baa8305b4..2fbb5069bd89 100644 --- a/sw/source/core/text/porfly.cxx +++ b/sw/source/core/text/porfly.cxx @@ -20,6 +20,7 @@ #include "dcontact.hxx" #include "dflyobj.hxx" #include "pam.hxx" +#include <portab.hxx> #include "flyfrm.hxx" #include "rootfrm.hxx" #include "frmfmt.hxx" @@ -52,7 +53,7 @@ bool SwFlyPortion::Format( SwTxtFormatInfo &rInf ) OSL_ENSURE( Fix() >= rInf.X(), "SwFlyPortion::Format" ); // tabs must be expanded (Bug 8537) if( rInf.GetLastTab() ) - ((SwLinePortion*)rInf.GetLastTab())->FormatEOL( rInf ); + rInf.GetLastTab()->FormatEOL( rInf ); rInf.GetLast()->FormatEOL( rInf ); PrtWidth( static_cast<sal_uInt16>(Fix() - rInf.X() + PrtWidth()) ); |