4
0
mirror of https://github.com/QuasarApp/CopyrightFixer.git synced 2025-05-13 01:49:45 +00:00

ref Fixing_2: added const references

This commit is contained in:
IgorekLoschinin 2021-04-19 22:59:34 +03:00
parent cddae2ffad
commit 7eca87abc2
2 changed files with 5 additions and 5 deletions
src/CopyrighFixer/CopyrighFixer

@ -13,19 +13,19 @@ Owner::Owner() {
}
void Owner::setName(const QString &ownerName) {
Owner::name = ownerName;
name = ownerName;
}
const QString &Owner::getOwnerName() const {
return Owner::name;
return name;
}
void Owner::setTimeRange(const QString &interval) {
timeRange = interval;
}
QString Owner::getTimeRange() {
return Owner::timeRange;
const QString &Owner::getTimeRange() const {
return timeRange;
}
};

@ -42,7 +42,7 @@ public:
* @brief getTimeRange The method changes the timestamp of the usage.
* @return the time interval when the file was modified
*/
QString getTimeRange();
const QString& getTimeRange() const;
private:
QString name;
QString timeRange;