summaryrefslogtreecommitdiff
path: root/sal/rtl/hash.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:05:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:24 +0100
commitd57d81e529a44d8042401e36057a69ebe97e870a (patch)
tree3c434c6998bb9c8754c9b662c4bdb485c0aff29b /sal/rtl/hash.cxx
parentcf54f2a10f128cf5d79397911b5be710e7081963 (diff)
Clean up C-style casts from pointers to void
Change-Id: I5e370445affbcd32b05588111f74590bf24f39d6
Diffstat (limited to 'sal/rtl/hash.cxx')
-rw-r--r--sal/rtl/hash.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/hash.cxx b/sal/rtl/hash.cxx
index 4de72e3f6ec7..03ae02dcc4ee 100644
--- a/sal/rtl/hash.cxx
+++ b/sal/rtl/hash.cxx
@@ -76,11 +76,11 @@ hashString (rtl_uString *pString)
static StringHashTable *
rtl_str_hash_new (sal_uInt32 nSize)
{
- StringHashTable *pHash = (StringHashTable *)malloc (sizeof (StringHashTable));
+ StringHashTable *pHash = static_cast<StringHashTable *>(malloc (sizeof (StringHashTable)));
pHash->nEntries = 0;
pHash->nSize = getNextSize (nSize);
- pHash->pData = (rtl_uString **) calloc (sizeof (rtl_uString *), pHash->nSize);
+ pHash->pData = static_cast<rtl_uString **>(calloc (sizeof (rtl_uString *), pHash->nSize));
return pHash;
}