ref #27 Fixing type of the argument into setListOwners

This commit is contained in:
IgorekLoschinin 2021-04-19 22:05:20 +03:00
parent 55eb24d796
commit 6ad01381c3
2 changed files with 4 additions and 4 deletions

View File

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

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(Owner &objOwner); void setlistOwners(QList<Owner> &objOwner);
/** /**
* @brief setLicenseTitle The method sets the copyright message. * @brief setLicenseTitle The method sets the copyright message.
@ -39,7 +39,7 @@ public:
* @brief setMessage Method adds custom message. * @brief setMessage Method adds custom message.
* @param strMsg Meaningful message with complementary information. * @param strMsg Meaningful message with complementary information.
*/ */
void setMessage(QString &strMsg); void setMessage(const QString &strMsg);
/** /**
* @brief getLstOwn The method allows you to get the current list of owners. * @brief getLstOwn The method allows you to get the current list of owners.