ref #27 Fixing: using const reference and assigment operator

This commit is contained in:
IgorekLoschinin 2021-04-19 22:18:38 +03:00
parent 6ad01381c3
commit dcbaa3dffb
2 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@ Signature::Signature() {
} }
void Signature::setlistOwners(QList<Owner> &objOwner) { void Signature::setlistOwners(const QList<Owner> &objOwner) {
ownersList.append(objOwner); ownersList = objOwner;
} }
void Signature::setLicenseTitle(const QString &strTitle) { void Signature::setLicenseTitle(const QString &strTitle) {

View File

@ -27,7 +27,7 @@ public:
* @brief setlistOwners The method generates a list of owners. * @brief setlistOwners The method generates a list of owners.
* @param objOwner This is a structure with information about the owner. * @param objOwner This is a structure with information about the owner.
*/ */
void setlistOwners(QList<Owner> &objOwner); void setlistOwners(const QList<Owner> &objOwner);
/** /**
* @brief setLicenseTitle The method sets the copyright message. * @brief setLicenseTitle The method sets the copyright message.