Add security mode to copy and assign operator

pull/4/head
Simon Stürz 2020-01-13 09:43:35 +01:00
parent 60db89ce74
commit a2a673de9d
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ ZigbeeSecurityConfiguration::ZigbeeSecurityConfiguration()
ZigbeeSecurityConfiguration::ZigbeeSecurityConfiguration(const ZigbeeSecurityConfiguration &other)
{
m_networkKey = other.networkKey();
m_zigbeeSecurityMode = other.zigbeeSecurityMode();
m_globalTrustCenterLinkKey = other.networkKey();
}
@ -51,6 +52,7 @@ void ZigbeeSecurityConfiguration::clear()
ZigbeeSecurityConfiguration &ZigbeeSecurityConfiguration::operator=(const ZigbeeSecurityConfiguration &other)
{
m_networkKey = other.networkKey();
m_zigbeeSecurityMode = other.zigbeeSecurityMode();
m_globalTrustCenterLinkKey = other.globalTrustCenterLinkKey();
return *this;
}