Cosmetics: reducing the compilation warnings

This commit is contained in:
Felipe Zimmerle
2016-07-29 18:33:16 -03:00
parent 0e5f72977e
commit 062dd17f14
4 changed files with 10 additions and 11 deletions

View File

@@ -122,13 +122,10 @@ bool SetVar::evaluate(Rule *rule, Transaction *transm_parser_payload) {
value = 0;
}
switch (m_operation) {
case sumAndSetOperation:
targetValue = std::to_string(value + pre);
break;
case substractAndSetOperation:
targetValue = std::to_string(value - pre);
break;
if (m_operation == sumAndSetOperation) {
targetValue = std::to_string(value + pre);
} else if (m_operation == substractAndSetOperation) {
targetValue = std::to_string(value - pre);
}
}