Cosmetics: address cppcheck warnings on src/operators

This commit is contained in:
Felipe Zimmerle
2020-01-23 08:10:05 -03:00
parent 9101a8ab15
commit ff590174da
27 changed files with 120 additions and 90 deletions

View File

@@ -42,6 +42,10 @@ class VerifySSN : public Operator {
~VerifySSN() {
delete m_re;
}
bool operator=(const VerifySSN &a) = delete;
VerifySSN(const VerifySSN &a) = delete;
bool evaluate(Transaction *transaction, Rule *rule,
const std::string &input) override {
return evaluate(transaction, NULL, input, NULL);
@@ -54,10 +58,12 @@ class VerifySSN : public Operator {
const std::string& input,
std::shared_ptr<RuleMessage> ruleMessage) override;
int convert_to_int(const char c);
bool verify(const char *ssnumber, int len);
private:
static bool verify(const char *ssnumber, int len);
static int convert_to_int(const char c);
Regex *m_re;
};