summaryrefslogtreecommitdiff
path: root/user.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-12-29 08:41:52 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-12-29 08:41:52 +0800
commit043999c4774a5b8bec758f101d2fca62bd64aca1 (patch)
treed70879fbdbfb6f513a1e0dd0613c4eba481f7e35 /user.cxx
parent2bf032f097da081fc45ff7249f789bdfe142fd28 (diff)
Fix User QString value assignments
Diffstat (limited to 'user.cxx')
-rw-r--r--user.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/user.cxx b/user.cxx
index 2834744..bc4e6c8 100644
--- a/user.cxx
+++ b/user.cxx
@@ -159,55 +159,55 @@ namespace ICClient {
void User::update(icclient_user* user)
{
if (user->username)
- m_userName = user->username;
+ m_userName = QString{user->username};
else
m_userName = "";
if (user->usernick)
- m_userNick = user->usernick;
+ m_userNick = QString{user->usernick};
else
m_userNick = "";
if (user->fname)
- m_fName = user->fname;
+ m_fName = QString{user->fname};
else
m_fName = "";
if (user->lname)
- m_lName = user->lname;
+ m_lName = QString{user->lname};
else
m_lName = "";
if (user->address1)
- m_address1 = user->address1;
+ m_address1 = QString{user->address1};
else
m_address1 = "";
if (user->address2)
- m_address2 = user->address2;
+ m_address2 = QString{user->address2};
else
m_address2 = "";
if (user->address3)
- m_address3 = user->address3;
+ m_address3 = QString{user->address3};
else
m_address3 = "";
if (user->city)
- m_city = user->city;
+ m_city = QString{user->city};
else
m_city = "";
if (user->state)
- m_state = user->state;
+ m_state = QString{user->state};
else
m_state = "";
if (user->zip)
- m_zip = user->zip;
+ m_zip = QString{user->zip};
else
m_zip = "";
if (user->country)
- m_country = user->country;
+ m_country = QString{user->country};
else
m_country = "";
if (user->phone_day)
- m_phoneDay = user->phone_day;
+ m_phoneDay = QString{user->phone_day};
else
m_phoneDay = "";
if (user->email)
- m_email = user->email;
+ m_email = QString{user->email};
else
m_email = "";