Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced the PREF code in FBURL with ProcessIntegerValue.
[xestiaab/.git]
/
source
/
contacteditor
/
ContactDataObject.cpp
diff --git
a/source/contacteditor/ContactDataObject.cpp
b/source/contacteditor/ContactDataObject.cpp
index
eb30e5b
..
1acc7f9
100644
(file)
--- a/
source/contacteditor/ContactDataObject.cpp
+++ b/
source/contacteditor/ContactDataObject.cpp
@@
-5046,24
+5046,8
@@
void ContactDataObject::ProcessCalendarAddressURI(wxString PropertySeg1, wxStrin
CalendarRequestListPID.insert(std::make_pair(*CalAdrURICount, PropertyValue));
} else if (PropertyName == wxT("PREF")){
CalendarRequestListPID.insert(std::make_pair(*CalAdrURICount, 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){
-
- CalendarRequestListPref.erase(*CalAdrURICount);
- CalendarRequestListPref.insert(std::make_pair(*CalAdrURICount, PriorityNumber));
-
- }
+ ProcessIntegerValue(this, &CalendarRequestListPref, &PropertyValue, CalAdrURICount);
} else if (PropertyName == wxT("MEDIATYPE")){
} else if (PropertyName == wxT("MEDIATYPE")){
@@
-5198,24
+5182,8
@@
void ContactDataObject::ProcessCalendarFreeBusy(wxString PropertySeg1, wxString
FreeBusyListPID.insert(std::make_pair(*FreeBusyAddressCount, PropertyValue));
} else if (PropertyName == wxT("PREF")){
FreeBusyListPID.insert(std::make_pair(*FreeBusyAddressCount, 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){
-
- FreeBusyListPref.erase(*FreeBusyAddressCount);
- FreeBusyListPref.insert(std::make_pair(*FreeBusyAddressCount, PriorityNumber));
-
- }
+ ProcessIntegerValue(this, &FreeBusyListPref, &PropertyValue, FreeBusyAddressCount);
} else if (PropertyName == wxT("MEDIATYPE")){
} else if (PropertyName == wxT("MEDIATYPE")){
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy