CategoriesListPID.insert(std::make_pair(*CategoryCount, PropertyValue));
} 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){
- CategoriesListPref.erase(*CategoryCount);
- CategoriesListPref.insert(std::make_pair(*CategoryCount, PriorityNumber));
-
- }
-
+ ProcessIntegerValue(this, &CategoriesListPref, &PropertyValue, CategoryCount);
+
} else if (PropertyName == wxT("LANGUAGE")){
CategoriesListLanguage.erase(*CategoryCount);