mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-29 03:04:43 +00:00
ref #27 Fixing: using const reference and assigment operator
This commit is contained in:
parent
6ad01381c3
commit
dcbaa3dffb
@ -13,8 +13,8 @@ Signature::Signature() {
|
||||
|
||||
}
|
||||
|
||||
void Signature::setlistOwners(QList<Owner> &objOwner) {
|
||||
ownersList.append(objOwner);
|
||||
void Signature::setlistOwners(const QList<Owner> &objOwner) {
|
||||
ownersList = objOwner;
|
||||
}
|
||||
|
||||
void Signature::setLicenseTitle(const QString &strTitle) {
|
||||
|
@ -27,7 +27,7 @@ public:
|
||||
* @brief setlistOwners The method generates a list of owners.
|
||||
* @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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user