Add profession bindings and missing for user

This commit is contained in:
E. Kozlovskaya 2021-01-04 19:16:29 +07:00
parent 91a5de78e9
commit 59344e6464
3 changed files with 46 additions and 10 deletions

View file

@ -86,13 +86,6 @@ bool User::setCurrentProfession(PID pid) {
}
void User::removeProfession(PID pid) {
// QMutableVectorIterator<UserProfession> i(mProfessions);
// while (i.hasNext()) {
// if (i.value().getProfession() == pid) {
// i.remove();
// }
// }
auto pred = [pid](UserProfession p) {
return p.getProfession() == pid;
};