} else if (PropertyName == wxT("PREF")){
- int PriorityNumber = 0;
- bool ValidNumber = TRUE;
-
- try{
- PriorityNumber = std::stoi(PropertyValue.ToStdString());
- }
-
- catch(std::invalid_argument &e){
- ValidNumber = FALSE;
- }
-
- if (ValidNumber == TRUE){
-
- NicknamesListPref->erase(*NicknameCount);
- NicknamesListPref->insert(std::make_pair(*NicknameCount, PriorityNumber));
-
- }
+ ProcessIntegerValue(this, NicknamesListPref, &PropertyValue, NicknameCount);
} else if (PropertyName == wxT("LANGUAGE")){