diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:04:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:21 +0100 |
commit | 33815ec44937f731ce3de9146a97265662d0d206 (patch) | |
tree | 40257290d306f43f9e5bb521c9ac9344a11cfd88 /hwpfilter/source/mzstring.cxx | |
parent | 5d950b3afd91e87035d24b550f29d0b3a7c5033b (diff) |
Clean up C-style casts from pointers to void
Change-Id: Ifbdbd2bb8a21afa76271728c46f88c11a887fc5a
Diffstat (limited to 'hwpfilter/source/mzstring.cxx')
-rw-r--r-- | hwpfilter/source/mzstring.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hwpfilter/source/mzstring.cxx b/hwpfilter/source/mzstring.cxx index 8d72f94ae40e..5fdb802824f9 100644 --- a/hwpfilter/source/mzstring.cxx +++ b/hwpfilter/source/mzstring.cxx @@ -266,7 +266,7 @@ bool MzString::allocate(int len) else { int n = get_alloc_size(len); - char *p = (char *)realloc(Data, n); + char *p = static_cast<char *>(realloc(Data, n)); if (p) { Data = p; @@ -279,7 +279,7 @@ bool MzString::allocate(int len) { // In case we want to add a null. int n = get_alloc_size(len); - Data = (char *)malloc(n); + Data = static_cast<char *>(malloc(n)); if (Data) { Allocated = n; |