Author: pfg
Date: Wed Oct  7 21:37:01 2015
New Revision: 1707397

URL: http://svn.apache.org/viewvc?rev=1707397&view=rev
Log:
Bring back the casts for Win32.

Our old version of MSVC doesn't understand CERT secure C coding standard
MEM 02-A.

Reported by:    damjan (through pescetti)

Modified:
    openoffice/trunk/main/sal/osl/w32/profile.cxx

Modified: openoffice/trunk/main/sal/osl/w32/profile.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/osl/w32/profile.cxx?rev=1707397&r1=1707396&r2=1707397&view=diff
==============================================================================
--- openoffice/trunk/main/sal/osl/w32/profile.cxx (original)
+++ openoffice/trunk/main/sal/osl/w32/profile.cxx Wed Oct  7 21:37:01 2015
@@ -1584,7 +1584,7 @@ static const sal_Char* addLine(osl_TProf
                if (pProfile->m_Lines == NULL)
                {
                        pProfile->m_MaxLines = LINES_INI;
-                       pProfile->m_Lines = calloc(pProfile->m_MaxLines, 
sizeof(sal_Char *));
+                       pProfile->m_Lines = (sal_Char 
**)calloc(pProfile->m_MaxLines, sizeof(sal_Char *));
                }
                else
                {
@@ -1625,7 +1625,7 @@ static const sal_Char* insertLine(osl_TP
                if (pProfile->m_Lines == NULL)
                {
                        pProfile->m_MaxLines = LINES_INI;
-                       pProfile->m_Lines = calloc(pProfile->m_MaxLines, 
sizeof(sal_Char *));
+                       pProfile->m_Lines = (sal_Char 
**)calloc(pProfile->m_MaxLines, sizeof(sal_Char *));
                }
                else
                {
@@ -1799,7 +1799,7 @@ static sal_Bool addSection(osl_TProfileI
                if (pProfile->m_Sections == NULL)
                {
                        pProfile->m_MaxSections = SECTIONS_INI;
-                       pProfile->m_Sections = calloc(pProfile->m_MaxSections, 
sizeof(osl_TProfileSection));
+                       pProfile->m_Sections = (osl_TProfileSection 
*)calloc(pProfile->m_MaxSections, sizeof(osl_TProfileSection));
                }
                else
                {


Reply via email to