diff options
author | Pedro Giffuni <pfg@apache.org> | 2015-10-07 21:37:01 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2015-10-07 21:37:01 +0000 |
commit | 6c12a27867dc7df6196e74a0409c21072601bb79 (patch) | |
tree | 3d399820ca5a518e065406eae7aa79c5898d1081 /sal/osl | |
parent | d52c7f2946fe867b89057796a4b109c7ef95c73a (diff) |
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)
Notes
Notes:
prefer: c61cf21e0acb41e9b8268d80ebd16cf616a4636c
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/w32/profile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx index 3c7ef52a62b4..ba11b162264f 100644 --- a/sal/osl/w32/profile.cxx +++ b/sal/osl/w32/profile.cxx @@ -1584,7 +1584,7 @@ static const sal_Char* addLine(osl_TProfileImpl* pProfile, const sal_Char* Line) 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_TProfileImpl* pProfile, const sal_Char* Li 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_TProfileImpl* pProfile, int Line, const sal_Char* 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 { |