licensepp icon indicating copy to clipboard operation
licensepp copied to clipboard

Issued License does not contain authority's signature on Windows

Open Kenichiro-Yoshimi opened this issue 5 years ago • 0 comments

In the definition of copy constructor and assignment operator of class License, I needed to add code lines for m_authoritySignature respectively. Are the following modifications valid?

License::License(const License& other):
    m_issueDate(other.m_issueDate),
    m_expiryDate(other.m_expiryDate),
    m_licensee(other.m_licensee),
    m_issuingAuthorityId(other.m_issuingAuthorityId),
    m_licenseeSignature(other.m_licenseeSignature),
+++ m_authoritySignature(other.m_authoritySignature)
{
}

License& License::operator=(License other)
{
    std::swap(m_issueDate, other.m_issueDate);
    std::swap(m_expiryDate, other.m_expiryDate);
    std::swap(m_licensee, other.m_licensee);
    std::swap(m_licenseeSignature, other.m_licenseeSignature);
    std::swap(m_issuingAuthorityId, other.m_issuingAuthorityId);
+++ std::swap(m_authoritySignature, other.m_authoritySignature);
    return *this;
}

Kenichiro-Yoshimi avatar Mar 29 '19 11:03 Kenichiro-Yoshimi