openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r1707397 - /openoffice/trunk/main/sal/osl/w32/profile.cxx
Date Wed, 07 Oct 2015 21:37:01 GMT
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
 		{



Mime
View raw message