mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-26 09:44:40 +00:00
Merge pull request #47 from QuasarApp/task_45
Rename all private fields
This commit is contained in:
commit
72eba9113f
@ -13,27 +13,27 @@ Config::Config() {
|
||||
}
|
||||
|
||||
void Config::setSourceDir(const QString &pathToDir) {
|
||||
sourceDirPath = pathToDir;
|
||||
_sourceDirPath = pathToDir;
|
||||
}
|
||||
|
||||
void Config::setSingValue(const Signature &value) {
|
||||
signValue = value;
|
||||
_signValue = value;
|
||||
}
|
||||
|
||||
void Config::setCurrOwn(const QString &owner) {
|
||||
currentOwner = owner;
|
||||
_currentOwner = owner;
|
||||
}
|
||||
|
||||
const QString &Config::getSrcDir() const {
|
||||
return sourceDirPath;
|
||||
return _sourceDirPath;
|
||||
}
|
||||
|
||||
const Signature &Config::getSignVal() const {
|
||||
return signValue;
|
||||
return _signValue;
|
||||
}
|
||||
|
||||
const QString &Config::getCurrentOwn() const {
|
||||
return currentOwner;
|
||||
return _currentOwner;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,9 +59,9 @@ public:
|
||||
const QString &getCurrentOwn() const;
|
||||
|
||||
private:
|
||||
QString sourceDirPath;
|
||||
Signature signValue;
|
||||
QString currentOwner;
|
||||
QString _sourceDirPath;
|
||||
Signature _signValue;
|
||||
QString _currentOwner;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -13,19 +13,19 @@ Owner::Owner() {
|
||||
}
|
||||
|
||||
void Owner::setName(const QString &ownerName) {
|
||||
name = ownerName;
|
||||
_name = ownerName;
|
||||
}
|
||||
|
||||
const QString &Owner::getOwnerName() const {
|
||||
return name;
|
||||
return _name;
|
||||
}
|
||||
|
||||
void Owner::setTimeRange(const QString &interval) {
|
||||
timeRange = interval;
|
||||
_timeRange = interval;
|
||||
}
|
||||
|
||||
const QString &Owner::getTimeRange() const {
|
||||
return timeRange;
|
||||
return _timeRange;
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -44,8 +44,8 @@ public:
|
||||
*/
|
||||
const QString& getTimeRange() const;
|
||||
private:
|
||||
QString name;
|
||||
QString timeRange;
|
||||
QString _name;
|
||||
QString _timeRange;
|
||||
|
||||
};
|
||||
|
||||
|
@ -14,27 +14,27 @@ Signature::Signature() {
|
||||
}
|
||||
|
||||
void Signature::setlistOwners(const QList<Owner> &objOwner) {
|
||||
ownersList = objOwner;
|
||||
_ownersList = objOwner;
|
||||
}
|
||||
|
||||
void Signature::setLicenseTitle(const QString &strTitle) {
|
||||
licenseTitle = strTitle;
|
||||
_licenseTitle = strTitle;
|
||||
}
|
||||
|
||||
void Signature::setMessage(const QString &strMsg) {
|
||||
customMessage = strMsg;
|
||||
_customMessage = strMsg;
|
||||
}
|
||||
|
||||
const QList<Owner> &Signature::getLstOwn() const {
|
||||
return ownersList;
|
||||
return _ownersList;
|
||||
}
|
||||
|
||||
const QString &Signature::getLicenseTitle() const {
|
||||
return licenseTitle;
|
||||
return _licenseTitle;
|
||||
}
|
||||
|
||||
const QString &Signature::getMessage() const {
|
||||
return customMessage;
|
||||
return _customMessage;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,9 +59,9 @@ public:
|
||||
const QString& getMessage() const;
|
||||
|
||||
private:
|
||||
QList<Owner> ownersList;
|
||||
QString licenseTitle;
|
||||
QString customMessage;
|
||||
QList<Owner> _ownersList;
|
||||
QString _licenseTitle;
|
||||
QString _customMessage;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user