summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:18:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:18:47 +0100
commit359dce126050e2d976593c0671db4311548f674d (patch)
tree407ca4e8faa814ce3e21bb70261b2846b39b95f5 /package
parentbc3e970641147a3b3b599f019aeb409cef1d44b2 (diff)
More loplugin:cstylecast: package
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: I0b588ac0743df25fd3eb3ac019fe6bd5360e5b0b
Diffstat (limited to 'package')
-rw-r--r--package/source/manifest/ManifestExport.cxx4
-rw-r--r--package/source/zippackage/ZipPackageFolder.cxx2
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/package/source/manifest/ManifestExport.cxx b/package/source/manifest/ManifestExport.cxx
index 5cf87334ca62..a43eafdbd7be 100644
--- a/package/source/manifest/ManifestExport.cxx
+++ b/package/source/manifest/ManifestExport.cxx
@@ -499,13 +499,13 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > con
{
sStartKeyAlg = sSHA256_URL_ODF12; // TODO use sSHA256_URL
(void) sSHA256_URL;
- aBuffer.append( (sal_Int32)32 );
+ aBuffer.append( sal_Int32(32) );
sStartKeySize = aBuffer.makeStringAndClear();
}
else if ( nStartKeyAlgID == xml::crypto::DigestID::SHA1 )
{
sStartKeyAlg = sSHA1_Name;
- aBuffer.append( (sal_Int32)20 );
+ aBuffer.append( sal_Int32(20) );
sStartKeySize = aBuffer.makeStringAndClear();
}
else
diff --git a/package/source/zippackage/ZipPackageFolder.cxx b/package/source/zippackage/ZipPackageFolder.cxx
index 061fc2d3a592..e76381826fe3 100644
--- a/package/source/zippackage/ZipPackageFolder.cxx
+++ b/package/source/zippackage/ZipPackageFolder.cxx
@@ -300,7 +300,7 @@ void ZipPackageFolder::saveContents(
{
// it is an empty subfolder, use workaround to store it
ZipEntry* pTempEntry = new ZipEntry(aEntry);
- pTempEntry->nPathLen = (sal_Int16)( OUStringToOString( rPath, RTL_TEXTENCODING_UTF8 ).getLength() );
+ pTempEntry->nPathLen = static_cast<sal_Int16>( OUStringToOString( rPath, RTL_TEXTENCODING_UTF8 ).getLength() );
pTempEntry->nExtraLen = -1;
pTempEntry->sPath = rPath;
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index c555b1f0bfbc..bd914b663406 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -530,7 +530,7 @@ bool ZipPackageStream::saveChild(
ZipEntry* pTempEntry = pAutoTempEntry.get();
pTempEntry->sPath = rPath;
- pTempEntry->nPathLen = (sal_Int16)( OUStringToOString( pTempEntry->sPath, RTL_TEXTENCODING_UTF8 ).getLength() );
+ pTempEntry->nPathLen = static_cast<sal_Int16>( OUStringToOString( pTempEntry->sPath, RTL_TEXTENCODING_UTF8 ).getLength() );
const bool bToBeEncrypted = m_bToBeEncrypted && (rEncryptionKey.getLength() || m_bHaveOwnKey);
const bool bToBeCompressed = bToBeEncrypted || m_bToBeCompressed;