diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-08 10:51:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-08 11:45:47 +0000 |
commit | 2600220f53f51be2d017b012c56293bf8cf835ef (patch) | |
tree | 88bb373d0ecaea1e64c71ca4388e55e593d58aa7 /vcl/source/gdi/pdfwriter_impl.cxx | |
parent | 7f40ed57eb921e491f2fb83c820cb453babd9843 (diff) |
loplugin:constantparams in vcl
Change-Id: I2114436f4bef3ac71a3035a206186cefaf88bca1
Reviewed-on: https://gerrit.libreoffice.org/23023
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 7a08891ecda0..5989355ff71f 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -2211,7 +2211,7 @@ OutputDevice* PDFWriterImpl::getReferenceDevice() pVDev->SetMapMode( MAP_MM ); m_pReferenceDevice->mpPDFWriter = this; - m_pReferenceDevice->ImplUpdateFontData( true ); + m_pReferenceDevice->ImplUpdateFontData(); } return m_pReferenceDevice; } @@ -6392,7 +6392,7 @@ OUString PKIStatusInfoToString(const PKIStatusInfo& rStatusInfo) // not exported from libsmime, so copy them here. Sigh. SECStatus -my_SEC_StringToOID(PLArenaPool *pool, SECItem *to, const char *from, PRUint32 len) +my_SEC_StringToOID(SECItem *to, const char *from, PRUint32 len) { PRUint32 decimal_numbers = 0; PRUint32 result_bytes = 0; @@ -6478,7 +6478,7 @@ bad_data: SECItem result_item = {siBuffer, nullptr, 0 }; result_item.data = result; result_item.len = result_bytes; - rv = SECITEM_CopyItem(pool, to, &result_item); + rv = SECITEM_CopyItem(nullptr, to, &result_item); } return rv; } @@ -7091,7 +7091,7 @@ bool PDFWriterImpl::finalizeSignature() // id-aa-timeStampToken OBJECT IDENTIFIER ::= { iso(1) // member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) // smime(16) aa(2) 14 } - if (my_SEC_StringToOID(nullptr, &typetag.oid, "1.2.840.113549.1.9.16.2.14", 0) != SECSuccess) + if (my_SEC_StringToOID(&typetag.oid, "1.2.840.113549.1.9.16.2.14", 0) != SECSuccess) { SAL_WARN("vcl.pdfwriter", "SEC_StringToOID failed"); free(pass); |