Kaydet (Commit) 359dce12 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst bc3e9706
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment