Cosmetics: Fix coding style issues

This commit is contained in:
Felipe Zimmerle
2015-10-27 10:21:14 -03:00
parent ffb973700a
commit 93031d93d0
17 changed files with 46 additions and 39 deletions

View File

@@ -37,11 +37,12 @@ namespace transformations {
std::string CssDecode::evaluate(std::string value,
Assay *assay) {
char *tmp = (char *) malloc(sizeof(char) * value.size() + 1);
char *tmp = reinterpret_cast<char *>(
malloc(sizeof(char) * value.size() + 1));
memcpy(tmp, value.c_str(), value.size() + 1);
tmp[value.size()] = '\0';
css_decode_inplace((unsigned char *)tmp, value.size());
css_decode_inplace(reinterpret_cast<unsigned char *>(tmp), value.size());
std::string ret(tmp, 0, value.size());
free(tmp);
return ret;