summaryrefslogtreecommitdiffstats
path: root/hwpfilter/source/formula.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:04:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:21 +0100
commit33815ec44937f731ce3de9146a97265662d0d206 (patch)
tree40257290d306f43f9e5bb521c9ac9344a11cfd88 /hwpfilter/source/formula.cxx
parentClean up C-style casts from pointers to void (diff)
downloadcore-33815ec44937f731ce3de9146a97265662d0d206.tar.gz
core-33815ec44937f731ce3de9146a97265662d0d206.zip
Clean up C-style casts from pointers to void
Change-Id: Ifbdbd2bb8a21afa76271728c46f88c11a887fc5a
Diffstat (limited to 'hwpfilter/source/formula.cxx')
-rw-r--r--hwpfilter/source/formula.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hwpfilter/source/formula.cxx b/hwpfilter/source/formula.cxx
index 0729396a8fb1..bb48aef6a6ff 100644
--- a/hwpfilter/source/formula.cxx
+++ b/hwpfilter/source/formula.cxx
@@ -585,7 +585,7 @@ int Formula::parse()
break;
}
- char *buf = (char *)malloc(a.length()+1);
+ char *buf = static_cast<char *>(malloc(a.length()+1));
bool bStart = false;
int i, j;
for( i = 0, j=0 ; i < a.length() ; i++){ // rtrim and ltrim 32 10 13
@@ -634,7 +634,7 @@ int Formula::parse()
void Formula::trim()
{
int len = strlen(eq);
- char *buf = (char *)malloc(len+1);
+ char *buf = static_cast<char *>(malloc(len+1));
bool bStart = false;
int i, j;
for( i = 0, j=0 ; i < len ; i++){ // rtrim and ltrim 32 10 13