Delete unused copy constructor & assignment operator in Rule, RuleMarker & Action

- Declare other unsupported copy constructor & assignment operators as
  deleted too (RuleWithActions, RuleUnconditional & RuleScript)
This commit is contained in:
Eduardo Arias
2024-06-02 02:03:34 +00:00
parent f180e647a1
commit 2ec640fd76
7 changed files with 37 additions and 147 deletions

View File

@@ -81,21 +81,9 @@ class Action {
set_name_and_payload(_action);
}
Action(const Action &a)
: m_isNone(a.m_isNone),
temporaryAction(a.temporaryAction),
action_kind(a.action_kind),
m_name(a.m_name),
m_parser_payload(a.m_parser_payload) { }
Action(const Action &a) = delete;
Action &operator=(const Action& a) {
m_isNone = a.m_isNone;
temporaryAction = a.temporaryAction;
action_kind = a.action_kind;
m_name = a.m_name;
m_parser_payload = a.m_parser_payload;
return *this;
}
Action &operator=(const Action& a) = delete;
virtual ~Action() { }