Kaydet (Commit) c61cf21e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fix error C2440: casts required

Change-Id: I34f7e43d7ed4daaf39f7453114ee468e27f0d90e
üst 5654d211
......@@ -1385,7 +1385,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
{
......@@ -1426,7 +1426,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
{
......@@ -1597,7 +1597,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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment