diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-10-05 11:45:03 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-10-05 12:00:42 +0300 |
commit | c61cf21e0acb41e9b8268d80ebd16cf616a4636c (patch) | |
tree | 32c9d8ecc9e568eb4bea39f9b03b7b16ad53466f /sal | |
parent | 5654d21180c864c506a9cddf4c8e038813367b09 (diff) |
Fix error C2440: casts required
Change-Id: I34f7e43d7ed4daaf39f7453114ee468e27f0d90e
Diffstat (limited to 'sal')
-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 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 { |