From c61cf21e0acb41e9b8268d80ebd16cf616a4636c Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 5 Oct 2015 11:45:03 +0300 Subject: Fix error C2440: casts required Change-Id: I34f7e43d7ed4daaf39f7453114ee468e27f0d90e --- sal/osl/w32/profile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sal') diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx index ca96496e720e..b3ef17586254 100644 --- a/sal/osl/w32/profile.cxx +++ b/sal/osl/w32/profile.cxx @@ -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 { -- cgit