summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/laycache.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
commit0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (patch)
treed9b77eece17b7b144a4ea50592b639b9f7c87095 /sw/source/core/layout/laycache.cxx
parent506856ca50e676520bcc80a8b498355663d0388f (diff)
More loplugin:cstylecast: sw
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I0f49d21dfdf82742f11b27709f74294feb1e419e
Diffstat (limited to 'sw/source/core/layout/laycache.cxx')
-rw-r--r--sw/source/core/layout/laycache.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index 435903bc70f0..4b7e2bb0558e 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -110,7 +110,7 @@ bool SwLayCacheImpl::Read( SvStream& rStream )
else
nOffset = COMPLETE_STRING;
aIo.CloseFlagRec();
- Insert( SW_LAYCACHE_IO_REC_PARA, nIndex, (sal_Int32)nOffset );
+ Insert( SW_LAYCACHE_IO_REC_PARA, nIndex, static_cast<sal_Int32>(nOffset) );
aIo.CloseRec();
break;
}
@@ -119,7 +119,7 @@ bool SwLayCacheImpl::Read( SvStream& rStream )
aIo.OpenFlagRec();
aIo.GetStream().ReadUInt32( nIndex )
.ReadUInt32( nOffset );
- Insert( SW_LAYCACHE_IO_REC_TABLE, nIndex, (sal_Int32)nOffset );
+ Insert( SW_LAYCACHE_IO_REC_TABLE, nIndex, static_cast<sal_Int32>(nOffset) );
aIo.CloseFlagRec();
aIo.CloseRec();
break;
@@ -246,7 +246,7 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc )
// immediately.
if( pTab->GetFollow() )
{
- if( nOfst == (sal_uLong) COMPLETE_STRING )
+ if( nOfst == sal_uLong(COMPLETE_STRING) )
nOfst = 0;
do
{
@@ -1067,7 +1067,7 @@ bool SwLayCacheIoImpl::OpenRec( sal_uInt8 cType )
{
sal_uInt32 nVal(0);
pStream->ReadUInt32( nVal );
- sal_uInt8 cRecTyp = (sal_uInt8)nVal;
+ sal_uInt8 cRecTyp = static_cast<sal_uInt8>(nVal);
if (!nVal || cRecTyp != cType || !pStream->good())
{
OSL_ENSURE( nVal, "OpenRec: Record-Header is 0" );