summaryrefslogtreecommitdiff
path: root/vcl/source/fontsubset/cff.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:10:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:10:40 +0100
commit55f07d4daa76503530d96b9c20b53c59bcd5bcf9 (patch)
tree7ad8a720341e38258dab12597d25616c3bff8807 /vcl/source/fontsubset/cff.cxx
parente235da515af0e2a5d5a0cf80773943b65fdb8f7b (diff)
More loplugin:cstylecast: vcl
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: I363c01a1ae9e863fca4fb4589829492d7280d711
Diffstat (limited to 'vcl/source/fontsubset/cff.cxx')
-rw-r--r--vcl/source/fontsubset/cff.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index 286c13e411ce..3c759cddd067 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -279,7 +279,7 @@ private:
void convertOneTypeOp();
void convertOneTypeEsc();
void callType2Subr( bool bGlobal, int nSubrNumber);
- sal_Int32 getReadOfs() const { return (sal_Int32)(mpReadPtr - mpBasePtr);}
+ sal_Int32 getReadOfs() const { return static_cast<sal_Int32>(mpReadPtr - mpBasePtr);}
const U8* mpBasePtr;
const U8* mpBaseEnd;
@@ -704,7 +704,7 @@ void CffSubsetterContext::convertOneTypeOp()
}
if( !(nMaskByte & nMaskBit))
continue;
- if( i >= 8*(int)sizeof(mnCntrMask))
+ if( i >= 8*int(sizeof(mnCntrMask)))
mbIgnoreHints = true;
if( mbIgnoreHints)
continue;
@@ -726,7 +726,7 @@ void CffSubsetterContext::convertOneTypeOp()
}
if( !(nMaskByte & nMaskBit))
continue;
- if( i >= 8*(int)sizeof(nHintMask))
+ if( i >= 8*int(sizeof(nHintMask)))
mbIgnoreHints = true;
if( mbIgnoreHints)
continue;
@@ -1656,7 +1656,7 @@ inline size_t Type1Emitter::emitRawData(const char* pData, size_t nLength) const
inline void Type1Emitter::emitAllRaw()
{
// writeout raw data
- assert( (mpPtr - maBuffer) < (int)sizeof(maBuffer));
+ assert( (mpPtr - maBuffer) < int(sizeof(maBuffer)));
emitRawData( maBuffer, mpPtr - maBuffer);
// reset the raw buffer
mpPtr = maBuffer;
@@ -1664,7 +1664,7 @@ inline void Type1Emitter::emitAllRaw()
inline void Type1Emitter::emitAllHex()
{
- assert( (mpPtr - maBuffer) < (int)sizeof(maBuffer));
+ assert( (mpPtr - maBuffer) < int(sizeof(maBuffer)));
for( const char* p = maBuffer; p < mpPtr;) {
// convert binary chunk to hex
char aHexBuf[0x4000];