[Libreoffice-commits] core.git: sal/rtl

Noel Grandin noel at peralex.com
Tue Jul 21 00:12:05 PDT 2015


 sal/rtl/random.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f6f415a6690baf5420bd2561353199d5dc1209a8
Author: Noel Grandin <noel at peralex.com>
Date:   Tue Jul 21 09:11:23 2015 +0200

    loplugin:cstylecast
    
    Change-Id: If877cd61000fe6b82083a9fff79c25364d49e721

diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx
index f463713..48dc886 100644
--- a/sal/rtl/random.cxx
+++ b/sal/rtl/random.cxx
@@ -333,7 +333,7 @@ rtlRandomError SAL_CALL rtl_random_getBytes (
     if ((pImpl == NULL) || (pBuffer == NULL))
         return rtl_Random_E_Argument;
 
-    if(pImpl->m_hDigest || !osl_get_system_random_data((char*)Buffer, Bytes))
+    if(pImpl->m_hDigest || !osl_get_system_random_data(static_cast<char*>(Buffer), Bytes))
     {
         if(!pImpl->m_hDigest)
         {


More information about the Libreoffice-commits mailing list