summaryrefslogtreecommitdiffstats
path: root/data/userinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'data/userinfo.cpp')
-rw-r--r--data/userinfo.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/data/userinfo.cpp b/data/userinfo.cpp
index 907f93a2..0bb5da11 100644
--- a/data/userinfo.cpp
+++ b/data/userinfo.cpp
@@ -18,32 +18,32 @@
UserInfo::UserInfo(const QString &username, const QString &password, QObject *parent) :
QObject(parent)
{
- this->username = username;
- this->password = password;
+ this->m_username = username;
+ this->m_password = password;
}
UserInfo::UserInfo(const UserInfo &other)
{
- this->username = other.username;
- this->password = other.password;
+ this->m_username = other.m_username;
+ this->m_password = other.m_password;
}
-QString UserInfo::getUsername() const
+QString UserInfo::username() const
{
- return username;
+ return m_username;
}
void UserInfo::setUsername(const QString &username)
{
- this->username = username;
+ this->m_username = username;
}
-QString UserInfo::getPassword() const
+QString UserInfo::password() const
{
- return password;
+ return m_password;
}
void UserInfo::setPassword(const QString &password)
{
- this->password = password;
+ this->m_password = password;
}