vcl/source/gdi/pdfwriter_impl.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 39f14ada958ff2cdd4ec5f7454983bfc5c35f89d
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Nov 11 08:55:40 2016 +0100

    loplugin:redundantcast
    
    Change-Id: I6fc99a6e8d7b5de86461dd52102dac9c011f3fe0

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index 80cb0a0..7c4e808 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -7158,8 +7158,8 @@ bool PDFWriter::Sign(PDFSignContext& rContext)
         return false;
     }
 
-    if (!CryptMsgUpdate(hMsg, reinterpret_cast<const BYTE 
*>(rContext.m_pByteRange1), rContext.m_nByteRange1, FALSE) ||
-        !CryptMsgUpdate(hMsg, reinterpret_cast<const BYTE 
*>(rContext.m_pByteRange2), rContext.m_nByteRange2, TRUE))
+    if (!CryptMsgUpdate(hMsg, static_cast<const BYTE 
*>(rContext.m_pByteRange1), rContext.m_nByteRange1, FALSE) ||
+        !CryptMsgUpdate(hMsg, static_cast<const BYTE 
*>(rContext.m_pByteRange2), rContext.m_nByteRange2, TRUE))
     {
         SAL_WARN("vcl.pdfwriter", "CryptMsgUpdate failed: " << 
WindowsErrorString(GetLastError()));
         CryptMsgClose(hMsg);
@@ -7315,8 +7315,8 @@ bool PDFWriter::Sign(PDFSignContext& rContext)
                                           &aSignedInfo,
                                           nullptr,
                                           nullptr)) ||
-            !CryptMsgUpdate(hMsg, reinterpret_cast<const BYTE 
*>(rContext.m_pByteRange1), rContext.m_nByteRange1, FALSE) ||
-            !CryptMsgUpdate(hMsg, reinterpret_cast<const BYTE 
*>(rContext.m_pByteRange1), rContext.m_nByteRange2, TRUE))
+            !CryptMsgUpdate(hMsg, static_cast<const BYTE 
*>(rContext.m_pByteRange1), rContext.m_nByteRange1, FALSE) ||
+            !CryptMsgUpdate(hMsg, static_cast<const BYTE 
*>(rContext.m_pByteRange1), rContext.m_nByteRange2, TRUE))
         {
             SAL_WARN("vcl.pdfwriter", "Re-creating the message failed: " << 
WindowsErrorString(GetLastError()));
             CryptMemFree(pTsContext);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to