Code cosmetics: reduce the amount of cppcheck warnings

This commit is contained in:
Felipe Zimmerle
2015-08-12 15:22:00 -03:00
parent 21400ba454
commit d5fe21ce3c
24 changed files with 49 additions and 56 deletions

View File

@@ -37,7 +37,7 @@ namespace transformations {
std::string CssDecode::evaluate(std::string value,
Assay *assay) {
char *tmp = strdup(value.c_str());
int res = css_decode_inplace((unsigned char *)tmp, value.size());
css_decode_inplace((unsigned char *)tmp, value.size());
std::string ret(tmp, 0, value.size());
free(tmp);
return ret;