mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-05-13 01:49:45 +00:00
ref #38 Fixing_2: added const references
This commit is contained in:
parent
cddae2ffad
commit
7eca87abc2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user