Merge PR #465: Fix action copy operator

This commit is contained in:
Jenkins nymea 2021-10-04 12:10:44 +02:00
commit eaab3032a7

View File

@ -57,7 +57,8 @@ Action::Action(const ActionTypeId &actionTypeId, const ThingId &thingId, Trigger
Action::Action(const Action &other): Action::Action(const Action &other):
m_actionTypeId(other.actionTypeId()), m_actionTypeId(other.actionTypeId()),
m_thingId(other.thingId()), m_thingId(other.thingId()),
m_params(other.params()) m_params(other.params()),
m_triggeredBy(other.triggeredBy())
{ {
} }
@ -147,4 +148,6 @@ void Action::operator =(const Action &other)
{ {
m_actionTypeId = other.actionTypeId(); m_actionTypeId = other.actionTypeId();
m_params = other.params(); m_params = other.params();
m_thingId = other.thingId();
m_triggeredBy = other.triggeredBy();
} }