} 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){
-
- FullNamesListPref.erase(*FNCount);
- FullNamesListPref.insert(std::make_pair(*FNCount, PriorityNumber));
-
- }
+ ProcessIntegerValue(this, &FullNamesListPref, &PropertyValue, FNCount);
} else if (!PropertyName.IsEmpty() && !PropertyValue.IsEmpty()){