Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issued License does not contain authority's signature on Windows #23

Open
Kenichiro-Yoshimi opened this issue Mar 29, 2019 · 0 comments

Comments

@Kenichiro-Yoshimi
Copy link

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant