Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replaced token processing in REV with ProcessTokens.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 28 Dec 2015 05:30:29 +0000 (05:30 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 28 Dec 2015 05:30:29 +0000 (05:30 +0000)
source/contacteditor/ContactDataObject.cpp
source/contacteditor/ContactDataObject.h

index ddb6a57..44a361d 100644 (file)
@@ -511,17 +511,8 @@ void ContactDataObject::ProcessRevision(wxString PropertySeg1, wxString Property
                }                       
                
                CaptureString(&PropertyValue, FALSE);
-                                                               
-               if (FirstToken == TRUE){
-                               
-                       PropertyTokens.Append(PropertyName + wxT("=") + PropertyValue);
-                       FirstToken = FALSE;
-                               
-               } else {
-                               
-                       PropertyTokens.Append(wxT(";") + PropertyName + wxT("=") + PropertyValue);
-                               
-               }
+               
+               ProcessTokens(&PropertyName, &PropertyValue, &PropertyTokens, &FirstToken);
        
        }       
        
@@ -5161,14 +5152,14 @@ void ContactDataObject::ProcessVendor(wxString PropertySeg1, wxString PropertySe
 void ProcessTokens(wxString *PropertyName,
        wxString *PropertyValue,
        wxString *PropertyTokens,
-       bool FirstToken){
+       bool *FirstToken){
        
        if (!PropertyName->IsEmpty() && !PropertyValue->IsEmpty() && *PropertyName != wxT("TYPE")){
                
-               if (FirstToken == TRUE){
+               if (*FirstToken == TRUE){
                        
                        PropertyTokens->Append(*PropertyName + wxT("=") + *PropertyValue);
-                       FirstToken = FALSE;
+                       *FirstToken = FALSE;
                        
                } else {
                        
index f542a06..06a6f93 100644 (file)
@@ -621,7 +621,7 @@ void CheckType(wxString *PropertySeg1,
 void ProcessTokens(wxString *PropertyName,
        wxString *PropertyValue,
        wxString *PropertyTokens,
-       bool FirstToken);
+       bool *FirstToken);
 
 void ProcessIntegerValue(wxString *PropertyName,
        wxString PropertyNameMatch,
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy