Add missing user serialization feature
This commit is contained in:
parent
3ec99d9632
commit
be4b13b7c2
1 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ bool operator==(const User &l, const User &r) {
|
|||
}
|
||||
|
||||
QDataStream& operator<<(QDataStream &stream, const User &usr) {
|
||||
stream << usr.mUID
|
||||
stream << usr.mUID << usr.mUserType
|
||||
<< usr.mLogin << usr.mPassword
|
||||
<< usr.mFirstName << usr.mSecondName << usr.mPatronymic
|
||||
<< usr.mProfessions << usr.mCurrentProfession;
|
||||
|
|
@ -96,7 +96,7 @@ QDataStream& operator<<(QDataStream &stream, const User &usr) {
|
|||
}
|
||||
|
||||
QDataStream& operator>>(QDataStream &stream, User &usr) {
|
||||
stream >> usr.mUID
|
||||
stream >> usr.mUID >> usr.mUserType
|
||||
>> usr.mLogin >> usr.mPassword
|
||||
>> usr.mFirstName >> usr.mSecondName >> usr.mPatronymic
|
||||
>> usr.mProfessions >> usr.mCurrentProfession;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue