mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-26 09:44:40 +00:00
Merge pull request #43 from QuasarApp/task_38
Fixing: add const reference into getOwnerName.
This commit is contained in:
commit
6a3025b2ab
@ -13,19 +13,19 @@ Owner::Owner() {
|
||||
}
|
||||
|
||||
void Owner::setName(const QString &ownerName) {
|
||||
Owner::name = ownerName;
|
||||
name = ownerName;
|
||||
}
|
||||
|
||||
QString Owner::getOwnerName() {
|
||||
return Owner::name;
|
||||
const QString &Owner::getOwnerName() const {
|
||||
return name;
|
||||
}
|
||||
|
||||
void Owner::setTimeRange(const QString &interval) {
|
||||
timeRange = interval;
|
||||
}
|
||||
|
||||
QString Owner::getTimeRange() {
|
||||
return Owner::timeRange;
|
||||
const QString &Owner::getTimeRange() const {
|
||||
return timeRange;
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
* @brief getOwnerName The method allows you to get information about the owner.
|
||||
* @return the owner name.
|
||||
*/
|
||||
QString getOwnerName();
|
||||
const QString& getOwnerName() const;
|
||||
|
||||
/**
|
||||
* @brief setTimeRange A method that allows you to set the time interval for using a file.
|
||||
@ -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